1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dolibarr_ynh.git synced 2024-09-03 18:35:53 +02:00

Modified upgrade script start to be compliant with generic script

This commit is contained in:
Olivier BILHAUT 2018-02-02 17:02:25 +01:00 committed by Jeff
parent d5d17f3b65
commit 76af5a1999

View file

@ -1,15 +1,22 @@
#!/bin/bash #!/bin/bash
# Exit on command errors and treat unset variables as an error #=================================================
set -eu # GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
source ./_extrahelpers # Really needed ?
#=================================================
# LOAD SETTINGS
#=================================================
app=$YNH_APP_INSTANCE_NAME app=$YNH_APP_INSTANCE_NAME
version=$(cat ../sources/version) version=$(cat ../sources/version)
# Source YunoHost helpers
source /usr/share/yunohost/helpers
source ./_extrahelpers
# Retrieve app settings # Retrieve app settings
domain=$(ynh_app_setting_get "$app" domain) domain=$(ynh_app_setting_get "$app" domain)
path=$(ynh_app_setting_get "$app" path) path=$(ynh_app_setting_get "$app" path)