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
07a5e35cf4
commit
b13ad7430c
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue