Subversion Repositories ALCASAR

Rev

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

Rev 1380 Rev 1382
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1380 2014-06-11 09:52:14Z richard $ 
2
#  $Id: alcasar.sh 1382 2014-06-11 17:25:20Z 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 1193... Line 1193...
1193
	$SED "/^DatabaseMirror db.fr.clamav.net/i DatabaseMirror switch.clamav.net" /etc/freshclam.conf
1193
	$SED "/^DatabaseMirror db.fr.clamav.net/i DatabaseMirror switch.clamav.net" /etc/freshclam.conf
1194
	$SED "s?MaxAttempts.*?MaxAttempts 3?g" /etc/freshclam.conf
1194
	$SED "s?MaxAttempts.*?MaxAttempts 3?g" /etc/freshclam.conf
1195
# Copy of the main virus database
1195
# Copy of the main virus database
1196
	rm -f /var/lib/clamav/*.cld # in case of old database scheme
1196
	rm -f /var/lib/clamav/*.cld # in case of old database scheme
1197
	cp -f $DIR_CONF/clamav-main.cvd /var/lib/clamav/main.cvd
1197
	cp -f $DIR_CONF/clamav-main.cvd /var/lib/clamav/main.cvd
1198
	/usr/bin/freshclam
1198
	/usr/bin/freshclam --no-warnings
1199
}
1199
}
1200
 
1200
 
1201
##################################################################################
1201
##################################################################################
1202
##			function "param_ulogd"					##
1202
##			function "param_ulogd"					##
1203
## - Ulog config for multi-log files 						##
1203
## - Ulog config for multi-log files 						##
Line 1584... Line 1584...
1584
EOF
1584
EOF
1585
 
1585
 
1586
chmod 755 /etc/gammu_smsd_conf
1586
chmod 755 /etc/gammu_smsd_conf
1587
 
1587
 
1588
#Creation dossier de log Gammu-smsd
1588
#Creation dossier de log Gammu-smsd
1589
mkdir /var/log/gammu-smsd
1589
[ -e /var/log/gammu-smsd ] || mkdir /var/log/gammu-smsd
1590
chmod 755 /var/log/gammu-smsd
1590
chmod 755 /var/log/gammu-smsd
1591
 
1591
 
1592
#Edition du script sql gammu <-> radius
1592
#Edition du script sql gammu <-> radius
1593
$SED "10c u_db=\"$DB_USER\"" $DIR_DEST_BIN/alcasar-sms.sh
1593
$SED "10c u_db=\"$DB_USER\"" $DIR_DEST_BIN/alcasar-sms.sh
1594
$SED "11c p_db=\"$radiuspwd\"" $DIR_DEST_BIN/alcasar-sms.sh
1594
$SED "11c p_db=\"$radiuspwd\"" $DIR_DEST_BIN/alcasar-sms.sh