Subversion Repositories ALCASAR

Rev

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

Rev 2864 Rev 2867
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-conf.sh 2864 2020-10-18 09:06:17Z rexy $
2
# $Id: alcasar-conf.sh 2867 2020-10-24 14:33:04Z 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 432... Line 432...
432
	default-lease-time 21600;
432
	default-lease-time 21600;
433
	max-lease-time 43200;
433
	max-lease-time 43200;
434
}
434
}
435
EOF
435
EOF
436
$DIR_BIN/alcasar-dns-local.sh -hosts_to_unbound # add local name resolution to unbound (forward & blackhole)
436
$DIR_BIN/alcasar-dns-local.sh -hosts_to_unbound # add local name resolution to unbound (forward & blackhole)
437
# DG + BL
437
# E2guardian
438
		$SED "s?^filterip.*?filterip = $PRIVATE_IP?g" /etc/e2guardian/e2guardian.conf
438
		$SED "s?^filterip.*?filterip = $PRIVATE_IP?g" /etc/e2guardian/e2guardian.conf
-
 
439
		$SED "s?\/\/[a-z.]*\/?\/\/$HOSTNAME.$DOMAIN\/?g" /usr/share/e2guardian/languages/french/alcasar-e2g.html
-
 
440
		$SED "s?\/\/[a-z.]*\/?\/\/$HOSTNAME.$DOMAIN\/?g" /usr/share/e2guardian/languages/ukenglish/alcasar-e2g.html
439
# Watchdog
441
# Watchdog
440
		$SED "s?^PRIVATE_IP=.*?PRIVATE_IP=\"$PRIVATE_IP\"?g" $DIR_BIN/alcasar-watchdog.sh
442
		$SED "s?^PRIVATE_IP=.*?PRIVATE_IP=\"$PRIVATE_IP\"?g" $DIR_BIN/alcasar-watchdog.sh
441
# Prompts
443
# Prompts
442
		$SED "s?^ORGANISME.*?ORGANISME=$ORGANISME?g" /etc/bashrc
444
		$SED "s?^ORGANISME.*?ORGANISME=$ORGANISME?g" /etc/bashrc
443
# sudoers
445
# sudoers