mirror of
https://framagit.org/YunoHost-Apps/gitea_ynh.git
synced 2024-11-23 11:31:35 +01:00
Better change user app home
This commit is contained in:
parent
1afc7df5b0
commit
3e05859e50
@ -110,6 +110,10 @@ 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"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Ensuring the user has the right home dir
|
||||||
|
if [ ~$app != "$datadir" ]; then
|
||||||
usermod -d "$datadir" $app
|
usermod -d "$datadir" $app
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user