move basedirprot call to postinst also
This commit is contained in:
parent
270c7a6e37
commit
0de778c41c
|
@ -202,6 +202,9 @@ EOF
|
||||||
echo "running alternc.install"
|
echo "running alternc.install"
|
||||||
alternc.install
|
alternc.install
|
||||||
|
|
||||||
|
# Add basedir protection
|
||||||
|
/usr/lib/alternc/basedir_prot.sh
|
||||||
|
|
||||||
if [ -x /usr/sbin/apache ]; then
|
if [ -x /usr/sbin/apache ]; then
|
||||||
if [ ! -h /etc/apache-ssl/conf.d/alternc.conf ]; then
|
if [ ! -h /etc/apache-ssl/conf.d/alternc.conf ]; then
|
||||||
ln -sf /etc/alternc/apache-ssl.conf \
|
ln -sf /etc/alternc/apache-ssl.conf \
|
||||||
|
|
|
@ -261,9 +261,6 @@ done
|
||||||
# Last touches
|
# Last touches
|
||||||
#
|
#
|
||||||
|
|
||||||
# Add basedir protection
|
|
||||||
/usr/lib/alternc/basedir_prot.sh
|
|
||||||
|
|
||||||
# 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
|
||||||
|
|
Loading…
Reference in New Issue