From ff029755d5c14c9178484fdb7c4c445fe918bbbb Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Mon, 20 Dec 2010 16:56:37 +0000 Subject: [PATCH] Ferme le ticket #1173 --- debian/alternc.postinst | 1 + etc/alternc/templates/alternc/bureau.conf | 7 +++++++ install/alternc.install | 3 +++ 3 files changed, 11 insertions(+) diff --git a/debian/alternc.postinst b/debian/alternc.postinst index 1ed6b57c..a0843ebd 100644 --- a/debian/alternc.postinst +++ b/debian/alternc.postinst @@ -216,6 +216,7 @@ EOF # Add access to the management panel ln -nsf /var/alternc/bureau /var/alternc/dns/$FQDN_LETTER/$FQDN + ln -nsf /var/alternc/bureau /var/alternc/dns/$(echo $PUBLIC_IP|cut -d '.' -f 1)/$PUBLIC_IP # Bind stuff touch /var/alternc/bind/automatic.conf /var/alternc/bind/slaveip.conf diff --git a/etc/alternc/templates/alternc/bureau.conf b/etc/alternc/templates/alternc/bureau.conf index 633bb996..f30bbc42 100644 --- a/etc/alternc/templates/alternc/bureau.conf +++ b/etc/alternc/templates/alternc/bureau.conf @@ -15,3 +15,10 @@ php_admin_flag register_globals on AddDefaultCharset ISO-8859-1 + + + php_admin_flag safe_mode_gid off + php_admin_flag safe_mode off + php_admin_flag register_globals on + AddDefaultCharset ISO-8859-1 + diff --git a/install/alternc.install b/install/alternc.install index 57f81c33..c4733426 100644 --- a/install/alternc.install +++ b/install/alternc.install @@ -128,6 +128,8 @@ if [ -z "$MONITOR_IP" ]; then MONITOR_IP="127.0.0.1" fi +PUBLIC_IP_BEGIN=$(echo $PUBLIC_IP|cut -d '.' -f 1) + # XXX: I assume this is secure if /tmp is sticky (+t) # we should have a better way to deal with templating, of course. SED_SCRIPT=`mktemp` @@ -135,6 +137,7 @@ cat > $SED_SCRIPT <