Subversion Repositories ALCASAR

Rev

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

Rev 2138 Rev 2149
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 2138 2017-03-18 18:29:01Z richard $ 
2
#  $Id: alcasar.sh 2149 2017-03-24 17:02:16Z 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 146... Line 146...
146
			then 
146
			then 
147
			ARCH=`echo $i|cut -d"=" -f2`
147
			ARCH=`echo $i|cut -d"=" -f2`
148
			unknown_os=`expr $unknown_os + 1`
148
			unknown_os=`expr $unknown_os + 1`
149
		fi
149
		fi
150
	done
150
	done
-
 
151
	if [ "$ARCH" == "i586" ]
-
 
152
		then
-
 
153
		if [ $Lang == "fr" ]
-
 
154
			then echo -n "Votre architecture matĂ©rielle doit ĂȘtre en 64bits"
-
 
155
			else echo -n "You hardware architecture must be 64bits"
-
 
156
			exit 0
-
 
157
		fi
-
 
158
	fi
151
	IFS="$old"
159
	IFS="$old"
152
# Test if ALCASAR is already installed
160
# Test if ALCASAR is already installed
153
	if [ -e $CONF_FILE ]
161
	if [ -e $CONF_FILE ]
154
	then
162
	then
155
		current_version=`cat $CONF_FILE | grep VERSION | cut -d"=" -f2`
163
		current_version=`cat $CONF_FILE | grep VERSION | cut -d"=" -f2`
Line 1413... Line 1421...
1413
	do
1421
	do
1414
		[ -e /lib/systemd/system/ulogd-$log_type.service ] || cp -f /lib/systemd/system/ulogd.service /lib/systemd/system/ulogd-$log_type.service
1422
		[ -e /lib/systemd/system/ulogd-$log_type.service ] || cp -f /lib/systemd/system/ulogd.service /lib/systemd/system/ulogd-$log_type.service
1415
		[ -e /var/log/firewall/$log_type.log ] || echo "" > /var/log/firewall/$log_type.log
1423
		[ -e /var/log/firewall/$log_type.log ] || echo "" > /var/log/firewall/$log_type.log
1416
		cp -f $DIR_CONF/ulogd-sample.conf /etc/ulogd-$log_type.conf
1424
		cp -f $DIR_CONF/ulogd-sample.conf /etc/ulogd-$log_type.conf
1417
		$SED "s?^group=.*?group=$nl?g" /etc/ulogd-$log_type.conf
1425
		$SED "s?^group=.*?group=$nl?g" /etc/ulogd-$log_type.conf
1418
		if [ "$ARCH" == "i586" ]; then $SED "s/lib64/lib/g" /etc/ulogd-$log_type.conf; fi
-
 
1419
		cat << EOF >> /etc/ulogd-$log_type.conf
1426
		cat << EOF >> /etc/ulogd-$log_type.conf
1420
[emu1]
1427
[emu1]
1421
file="/var/log/firewall/$log_type.log"
1428
file="/var/log/firewall/$log_type.log"
1422
sync=1
1429
sync=1
1423
EOF
1430
EOF