Subversion Repositories ALCASAR

Rev

Rev 1916 | Rev 1946 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1916 Rev 1918
Line 1... Line 1...
1
#/bin/bash
1
#/bin/bash
2
# $Id: alcasar-conf.sh 1916 2016-06-01 09:34:45Z franck $
2
# $Id: alcasar-conf.sh 1918 2016-06-01 14:49:47Z franck $
3
 
3
 
4
# alcasar-conf.sh
4
# alcasar-conf.sh
5
# by REXY
5
# by REXY
6
# This script is distributed under the Gnu General Public License (GPL)
6
# This script is distributed under the Gnu General Public License (GPL)
7
 
7
 
Line 71... Line 71...
71
		;;
71
		;;
72
	--create|-create)	
72
	--create|-create)	
73
		[ -d $DIR_UPDATE ] && rm -rf $DIR_UPDATE
73
		[ -d $DIR_UPDATE ] && rm -rf $DIR_UPDATE
74
		mkdir $DIR_UPDATE
74
		mkdir $DIR_UPDATE
75
# backup the users database  (test to delete in future version)
75
# backup the users database  (test to delete in future version)
76
		if [ -e 	$DIR_BIN/alcasar-mysql.sh ]; then					$DIR_BIN/alcasar-mysql.sh --dump
76
		if [ -e $DIR_BIN/alcasar-mysql.sh ]; then
-
 
77
			$DIR_BIN/alcasar-mysql.sh --dump
77
		else
78
		else
78
			/usr/local/sbin/alcasar-mysql.sh --dump
79
			/usr/local/sbin/alcasar-mysql.sh --dump
79
		fi
80
		fi
80
		cp /var/Save/base/`ls -1t /var/Save/base|head -1` $DIR_UPDATE
81
		cp /var/Save/base/`ls -1t /var/Save/base|head -1` $DIR_UPDATE
81
# backup the logo
82
# backup the logo