Change user app home too if homedir is moved

This commit is contained in:
tituspijean 2022-09-05 21:12:52 +02:00 committed by GitHub
parent b5cb1820a5
commit 1afc7df5b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,6 +110,7 @@ fi
# Move data directory # Move data directory
if [ -e "/home/""$app" ] && [ ! -e $datadir ]; then if [ -e "/home/""$app" ] && [ ! -e $datadir ]; then
mv "/home/""$app" "$datadir" mv "/home/""$app" "$datadir"
usermod -d "$datadir" $app
fi fi
#================================================= #=================================================