Quand on change le FQDN, utile de recreer les liens symbolique

This commit is contained in:
Alan Garcia 2011-03-04 13:05:55 +00:00
parent d5783b5c57
commit 33e70e138a
1 changed files with 4 additions and 0 deletions

View File

@ -338,6 +338,10 @@ done
# Last touches # Last touches
# #
ln -nsf /var/alternc/bureau /var/alternc/dns/$FQDN_LETTER/$FQDN
ln -nsf /var/alternc/bureau /var/alternc/dns/$PUBLIC_IP_BEGIN/$PUBLIC_IP
# Creating admin user if needed # Creating admin user if needed
HAS_ROOT=`mysql --defaults-file=/etc/alternc/my.cnf -e "SELECT COUNT(*) FROM membres WHERE login = 'admin' OR login = 'root' and su = 1" | tail -1` HAS_ROOT=`mysql --defaults-file=/etc/alternc/my.cnf -e "SELECT COUNT(*) FROM membres WHERE login = 'admin' OR login = 'root' and su = 1" | tail -1`
if [ "$HAS_ROOT" != "1" ]; then if [ "$HAS_ROOT" != "1" ]; then