move basedirprot call to postinst also

This commit is contained in:
Antoine Beaupré 2008-10-04 16:50:14 +00:00
parent 270c7a6e37
commit 0de778c41c
2 changed files with 3 additions and 3 deletions

3
debian/postinst vendored
View File

@ -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 \

View File

@ -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