mirror of
https://github.com/YunoHost-Apps/gitea_ynh.git
synced 2024-09-03 20:36:22 +02:00
Merge pull request #56 from YunoHost-Apps/fix-homedir
This commit is contained in:
commit
d88eb8a04a
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue