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

@ -41,6 +41,9 @@ rebuild_user_conf() {
chmod u-w /etc/shadow
# Building directory tree
if [ -e "$HOMEDIR/$user/conf" ]; then
chattr -i $HOMEDIR/$user/conf
fi
mkdir -p $HOMEDIR/$user/conf
chmod a+x $HOMEDIR/$user
chmod a+x $HOMEDIR/$user/conf