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

Super funky inconsistent tweak with install_dir during upgrade x_x

This commit is contained in:
Alexandre Aubin 2023-12-27 20:59:50 +01:00
parent 69bc538752
commit 582e0b7cfa

View file

@ -1,31 +1,8 @@
#!/bin/bash #!/bin/bash
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh source _common.sh
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
#=================================================
# LOAD SETTINGS
#=================================================
ynh_script_progression --message="Loading settings..." --weight=1
if [[ "$path" != "/" ]]
then
# We use the path url name (e.g. /documents) instead of h5ai for convenience...
install_dir=/var/www/$path
else
install_dir=/var/www/$app
fi
#=================================================
# CHECK VERSION
#=================================================
upgrade_type=$(ynh_check_app_version_changed) upgrade_type=$(ynh_check_app_version_changed)
#================================================= #=================================================