mirror of
https://framagit.org/YunoHost-Apps/gitea_ynh.git
synced 2024-11-21 18:41:35 +01:00
Change user app home too if homedir is moved
This commit is contained in:
parent
b5cb1820a5
commit
1afc7df5b0
@ -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
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user