Better change user app home

This commit is contained in:
tituspijean 2022-09-05 22:43:19 +02:00
parent 1afc7df5b0
commit 3e05859e50
No known key found for this signature in database
GPG Key ID: EF3B0D7CC0A94720

View File

@ -110,6 +110,10 @@ fi
# Move data directory
if [ -e "/home/""$app" ] && [ ! -e $datadir ]; then
mv "/home/""$app" "$datadir"
fi
# Ensuring the user has the right home dir
if [ ~$app != "$datadir" ]; then
usermod -d "$datadir" $app
fi