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:26:20 +01:00
parent 57544f62e3
commit b58aeba334
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -61,6 +61,12 @@ if [ -z "$final_path" ]; then
ynh_app_setting_set --app=$app --key=final_path --value=$final_path ynh_app_setting_set --app=$app --key=final_path --value=$final_path
fi fi
# If final_path doesn't exist, create it
if [ -z "$port" ]; then
port=$(ynh_find_port --port=6000)
ynh_app_setting_set --app=$app --key=port --value=$port
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