File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,6 @@ echo "$password" | /usr/bin/passwd "$user" --stdin &>/dev/null
6969
7070# Building directory tree
7171mkdir $HOMEDIR /$user /conf
72- chattr +i $HOMEDIR /$user /conf
7372
7473if [ ! -z " $WEB_SYSTEM " ] && [ " $WEB_SYSTEM " != ' no' ]; then
7574 mkdir $HOMEDIR /$user /conf/web
9796
9897# Set permissions
9998chmod a+x $HOMEDIR /$user
99+ chattr +i $HOMEDIR /$user /conf
100100
101101# Checking quota
102102if [ ! -z " $DISK_QUOTA " ] && [ " $DISK_QUOTA " != ' no' ]; then
Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ rebuild_user_conf() {
4141 chmod u-w /etc/shadow
4242
4343 # Building directory tree
44+ if [ -e " $HOMEDIR /$user /conf" ]; then
45+ chattr -i $HOMEDIR /$user /conf
46+ fi
4447 mkdir -p $HOMEDIR /$user /conf
4548 chmod a+x $HOMEDIR /$user
4649 chmod a+x $HOMEDIR /$user /conf
You can’t perform that action at this time.
0 commit comments