mirror of
https://framagit.org/YunoHost-Apps/gitea_ynh.git
synced 2025-10-30 05:15:30 +01:00
Better change user app home
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user