cosmetic: reorder

This commit is contained in:
Antoine Beaupré 2013-01-08 20:44:17 +00:00
parent a8fe50ccff
commit 5ccb3558b9
1 changed files with 3 additions and 3 deletions

View File

@ -417,9 +417,6 @@ fi
chown alterncpanel:alterncpanel "$ALTERNC_LOC/html/"*
setfacl -b -k -m d:g:alterncpanel:rw- -m g:alterncpanel:rw- "$ALTERNC_LOC/html/"*
# 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`
#creating log file
if [ ! -e "/var/log/alternc/bureau.log" ]; then
test -d "/var/log/alternc/" || mkdir -p "/var/log/alternc/"
@ -428,6 +425,9 @@ if [ ! -e "/var/log/alternc/bureau.log" ]; then
chown alterncpanel:adm /var/log/alternc/bureau.log
fi
# 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
echo "Creating admin user..."
echo ""