Subversion Repositories ALCASAR

Rev

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

Rev 2571 Rev 2580
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-conf.sh 2571 2018-07-17 16:11:51Z rexy $
2
# $Id: alcasar-conf.sh 2580 2018-07-25 22:12:59Z rexy $
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 172... Line 172...
172
# Import of the users database
172
# Import of the users database
173
		gzip -dc < `ls $DIR_UPDATE/alcasar-users-database*` | mysql -u$DB_USER -p$DB_PASS
173
		gzip -dc < `ls $DIR_UPDATE/alcasar-users-database*` | mysql -u$DB_USER -p$DB_PASS
174
# Retrieve local parameters
174
# Retrieve local parameters
175
		cp -rf $DIR_UPDATE/etc/* $DIR_ETC/
175
		cp -rf $DIR_UPDATE/etc/* $DIR_ETC/
176
		mv -f $DIR_UPDATE/etc/hosts /etc/hosts
176
		mv -f $DIR_UPDATE/etc/hosts /etc/hosts
-
 
177
		chmod 755 /etc/hosts
177
# Retrieve BL/WL custom files
178
# Retrieve BL/WL custom files
178
		cp -f $DIR_UPDATE/custom_bl/exceptioniplist /etc/e2guardian/lists/
179
		cp -f $DIR_UPDATE/custom_bl/exceptioniplist /etc/e2guardian/lists/
179
		cp -f $DIR_UPDATE/custom_bl/exceptionsitelist /etc/e2guardian/lists/
180
		cp -f $DIR_UPDATE/custom_bl/exceptionsitelist /etc/e2guardian/lists/
180
		cp -f $DIR_UPDATE/custom_bl/urlregexplist /etc/e2guardian/lists/
181
		cp -f $DIR_UPDATE/custom_bl/urlregexplist /etc/e2guardian/lists/
181
		cp -f $DIR_UPDATE/custom_bl/bannedsitelist /etc/e2guardian/lists/ 
182
		cp -f $DIR_UPDATE/custom_bl/bannedsitelist /etc/e2guardian/lists/