Subversion Repositories ALCASAR

Rev

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

Rev 2171 Rev 2175
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 2171 2017-04-21 17:39:13Z tom.houdayer $ 
2
#  $Id: alcasar.sh 2175 2017-04-24 20:47:49Z 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 2011... Line 2011...
2011
		$DIR_DEST_BIN/alcasar-archive.sh --now # exports current logs in /var/Save/archive
2011
		$DIR_DEST_BIN/alcasar-archive.sh --now # exports current logs in /var/Save/archive
2012
		$DIR_DEST_BIN/alcasar-conf.sh --load
2012
		$DIR_DEST_BIN/alcasar-conf.sh --load
2013
		PARENT_SCRIPT=`basename $0`
2013
		PARENT_SCRIPT=`basename $0`
2014
		export PARENT_SCRIPT # to avoid stop&start process during the installation process
2014
		export PARENT_SCRIPT # to avoid stop&start process during the installation process
2015
		$DIR_DEST_BIN/alcasar-conf.sh --apply
2015
		$DIR_DEST_BIN/alcasar-conf.sh --apply
-
 
2016
		$DIR_DEST_BIN/alcasar-file-clean.sh # Clean & sort conf files. Add uamallowed domains to the dns-blackhole conf 
2016
		$SED "s?^INSTALL_DATE=.*?INSTALL_DATE=$DATE?g" $CONF_FILE
2017
		$SED "s?^INSTALL_DATE=.*?INSTALL_DATE=$DATE?g" $CONF_FILE
2017
		$SED "s?^VERSION=.*?VERSION=$VERSION?g" $CONF_FILE
2018
		$SED "s?^VERSION=.*?VERSION=$VERSION?g" $CONF_FILE
2018
	fi
2019
	fi
2019
	rm -f /tmp/alcasar-conf*
2020
	rm -f /tmp/alcasar-conf*
2020
	chown -R root:apache $DIR_DEST_ETC/*
2021
	chown -R root:apache $DIR_DEST_ETC/*