1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/limesurvey_ynh.git synced 2024-09-03 19:36:32 +02:00

[fix] Should fix upgrade from 2.0.5

This commit is contained in:
ljf 2017-02-10 00:50:37 +01:00
parent c5d2cc73fe
commit 3a5de2c49d

View file

@ -12,8 +12,10 @@ export path=$(ynh_app_setting_get $app path)
export admin=$(ynh_app_setting_get $app admin)
db_pwd=$(ynh_app_setting_get $app mysqlpwd)
export local_path=$(ynh_app_setting_get $app local_path)
export is_public=$(ynh_app_setting_get $app is_public || echo 0)
export prefix=$(ynh_app_setting_get $app prefix || echo 'prefix_')
export is_public=$(ynh_app_setting_get $app is_public)
is_public=${is_public:-0}
export prefix=$(ynh_app_setting_get $app prefix)
prefix=${prefix:-prefix_}
version=$(ynh_read_json "/etc/yunohost/apps/$app/manifest.json" 'version' 2> /dev/null || echo '2.0.5')
last_version=$(ynh_read_manifest 'version')