Merge pull request #56 from YunoHost-Apps/fix-homedir

This commit is contained in:
tituspijean 2022-09-12 15:37:41 +02:00 committed by GitHub
commit d88eb8a04a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,6 +112,11 @@ if [ -e "/home/""$app" ] && [ ! -e $datadir ]; then
mv "/home/""$app" "$datadir" mv "/home/""$app" "$datadir"
fi fi
# Ensuring the user has the right home dir
if [ ~$app != "$datadir" ]; then
usermod -d "$datadir" $app
fi
#================================================= #=================================================
# STANDARD UPGRADE STEPS # STANDARD UPGRADE STEPS
#================================================= #=================================================