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:
parent
57544f62e3
commit
b58aeba334
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue