From 33e70e138a3ef51447ad5e250e034bbde953edab Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Fri, 4 Mar 2011 13:05:55 +0000 Subject: [PATCH] Quand on change le FQDN, utile de recreer les liens symbolique --- install/alternc.install | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install/alternc.install b/install/alternc.install index 46dc52cb..de4f0797 100644 --- a/install/alternc.install +++ b/install/alternc.install @@ -338,6 +338,10 @@ done # 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 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