mirror of
https://github.com/YunoHost-Apps/gitea_ynh.git
synced 2024-09-03 20:36:22 +02:00
Update upgrade
This commit is contained in:
parent
fe1742fddf
commit
d399b0cc6f
1 changed files with 4 additions and 3 deletions
|
@ -36,9 +36,9 @@ key=$(ynh_app_setting_get --app=$app --key=key)
|
|||
upgrade_type=$(ynh_check_app_version_changed)
|
||||
|
||||
# Move data directory
|
||||
if [ -e "/home/$app" ] && [ ! -e $datadir ]; then
|
||||
mv "/home/$app" "$datadir"
|
||||
fi
|
||||
#if [ -e "/home/$app" ] && [ ! -e $datadir ]; then
|
||||
# mv "/home/$app" "$datadir"
|
||||
#fi
|
||||
|
||||
#=================================================
|
||||
# STANDARD UPGRADE STEPS
|
||||
|
@ -87,6 +87,7 @@ if [ -z "$final_path" ]; then
|
|||
fi
|
||||
|
||||
# If new "/home/yunohost.app/$app" doesn't exist, create it
|
||||
#if [ -e "/home/$app" ] && [ ! -e $datadir ]; then
|
||||
if [ -z "/home/yunohost.app/$app" ]; then
|
||||
datadir=/home/yunohost.app/$app
|
||||
ynh_app_setting_set --app=$app --key=datadir --value=$datadir
|
||||
|
|
Loading…
Add table
Reference in a new issue