Subversion Repositories ALCASAR

Rev

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

Rev 2203 Rev 2206
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 2203 2017-05-06 14:02:05Z richard $ 
2
#  $Id: alcasar.sh 2206 2017-05-06 17:58:56Z richard $ 
3
 
3
 
4
# alcasar.sh
4
# alcasar.sh
5
 
5
 
6
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
6
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
7
# Ce programme est un logiciel libre ; This software is free and open source
7
# Ce programme est un logiciel libre ; This software is free and open source
Line 2142... Line 2142...
2142
			exit 0
2142
			exit 0
2143
		fi
2143
		fi
2144
		if [ -e $CONF_FILE ]
2144
		if [ -e $CONF_FILE ]
2145
		then
2145
		then
2146
# Uninstall the running version
2146
# Uninstall the running version
2147
			$DIR_SCRIPTS/alcasar-uninstall.sh
2147
			$DIR_SCRIPTS/alcasar-uninstall.sh -update
2148
		fi
2148
		fi
2149
# Test if manual update	
2149
# Test if manual update	
2150
		if [ -e /tmp/alcasar-conf*.tar.gz ] && [ "$mode" == "install" ]
2150
		if [ -e /tmp/alcasar-conf*.tar.gz ] && [ "$mode" == "install" ]
2151
		then
2151
		then
2152
			header_install
2152
			header_install
Line 2214... Line 2214...
2214
			$DIR_SCRIPTS/alcasar-conf.sh --create
2214
			$DIR_SCRIPTS/alcasar-conf.sh --create
2215
		else	
2215
		else	
2216
			rm -f /tmp/alcasar-conf*
2216
			rm -f /tmp/alcasar-conf*
2217
		fi
2217
		fi
2218
# Uninstall the running version
2218
# Uninstall the running version
2219
		$DIR_SCRIPTS/alcasar-uninstall.sh
2219
		$DIR_SCRIPTS/alcasar-uninstall.sh -full
2220
		;;
2220
		;;
2221
	*)
2221
	*)
2222
		echo "Argument inconnu :$1";
2222
		echo "Argument inconnu :$1";
2223
		echo "Unknown argument :$1";
2223
		echo "Unknown argument :$1";
2224
		echo "$usage"
2224
		echo "$usage"