diff --git a/debian/postinst b/debian/postinst index 07d7f1e3..628d5a16 100644 --- a/debian/postinst +++ b/debian/postinst @@ -202,6 +202,9 @@ EOF echo "running alternc.install" alternc.install + # Add basedir protection + /usr/lib/alternc/basedir_prot.sh + if [ -x /usr/sbin/apache ]; then if [ ! -h /etc/apache-ssl/conf.d/alternc.conf ]; then ln -sf /etc/alternc/apache-ssl.conf \ diff --git a/install/alternc.install b/install/alternc.install index 11de2bf4..60799e8b 100644 --- a/install/alternc.install +++ b/install/alternc.install @@ -261,9 +261,6 @@ done # Last touches # -# Add basedir protection -/usr/lib/alternc/basedir_prot.sh - # 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