mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 10:37:39 -07:00
fix for chattr
This commit is contained in:
parent
d1ee9b8d1a
commit
601cc77383
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue