fix for chattr

This commit is contained in:
Serghey Rodin 2013-04-04 00:43:09 +03:00
commit 601cc77383
2 changed files with 4 additions and 1 deletions

View file

@ -69,7 +69,6 @@ echo "$password" | /usr/bin/passwd "$user" --stdin &>/dev/null
# Building directory tree
mkdir $HOMEDIR/$user/conf
chattr +i $HOMEDIR/$user/conf
if [ ! -z "$WEB_SYSTEM" ] && [ "$WEB_SYSTEM" != 'no' ]; then
mkdir $HOMEDIR/$user/conf/web
@ -97,6 +96,7 @@ fi
# Set permissions
chmod a+x $HOMEDIR/$user
chattr +i $HOMEDIR/$user/conf
# Checking quota
if [ ! -z "$DISK_QUOTA" ] && [ "$DISK_QUOTA" != 'no' ]; then