Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2488 → Rev 2499

/alcasar.sh
49,7 → 49,7
# letsencrypt : Let's Encrypt client
# post_install : Security, log rotation, etc.
 
DEBUG_ALCASAR=off; export DEBUG_ALCASAR # Debug mode = wait (hit key) after each function
DEBUG_ALCASAR='off'; export DEBUG_ALCASAR # Debug mode = wait (hit key) after each function
DATE=`date '+%d %B %Y - %Hh%M'`
DATE_SHORT=`date '+%d/%m/%Y'`
Lang=`echo $LANG|cut -c 1-2`
176,7 → 176,7
echo -n "Tapez '1' pour une mise à jour; Tapez '2' pour une réinstallation : "
else
echo -n "Hit '1' for an update; Hit '2' for a reinstallation : "
fi
fi
read response
done
if [ "$response" = "2" ]
794,6 → 794,7
$SED "s/^\([\t ]*\)var.server_name.*/\1var.server_name = \"$HOSTNAME.$DOMAIN\"/g" /etc/lighttpd/vhosts.d/alcasar.conf
 
/usr/bin/systemctl start lighttpd
/usr/bin/systemctl start php-fpm
 
# Définition du premier compte lié au profil 'admin'
if [ "$mode" = "install" ]
2012,7 → 2013,7
WantedBy=multi-user.target
EOF
# processes launched at boot time (Systemctl)
for i in alcasar-load_balancing mysqld lighttpd ntpd iptables dnsmasq dnsmasq-blacklist dnsmasq-whitelist dnsmasq-blackhole radiusd nfsen dansguardian freshclam ulogd-ssh ulogd-traceability ulogd-ext-access chilli fail2ban havp tinyproxy vnstat sshd
for i in alcasar-load_balancing mysqld lighttpd php-fpm ntpd iptables dnsmasq dnsmasq-blacklist dnsmasq-whitelist dnsmasq-blackhole radiusd nfsen dansguardian freshclam ulogd-ssh ulogd-traceability ulogd-ext-access chilli fail2ban havp tinyproxy vnstat sshd
do
/usr/bin/systemctl -q enable $i.service
done