1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gogs_ynh.git synced 2024-09-03 20:36:23 +02:00

Update upgrade

This commit is contained in:
ericgaspar 2021-12-22 12:08:39 +01:00
parent 07a5e35cf4
commit b13ad7430c
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -55,6 +55,12 @@ ynh_abort_if_errors
#================================================= #=================================================
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1 ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
# If final_path doesn't exist, create it
if [ -z "$final_path" ]; then
final_path=/var/www/$app
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
fi
# If new datadir doesn't exist, create it # If new datadir doesn't exist, create it
if [ -z "/home/yunohost.app/$app" ]; then if [ -z "/home/yunohost.app/$app" ]; then
datadir=/home/yunohost.app/$app datadir=/home/yunohost.app/$app