Fix version management

This commit is contained in:
Josué Tille 2021-02-13 14:56:18 +01:00
parent f892fb10dc
commit dcdbd5e2b5
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF

View file

@ -25,11 +25,12 @@ webdav_port=$(ynh_app_setting_get --app $app --key webdav_port)
final_path=$(ynh_app_setting_get --app $app --key final_path)
seafile_user=$app
seafile_data=/home/yunohost.app/seafile-data
installed_version=${YNH_APP_CURRENT_VERSION/*~ynh/}
installed_version=${YNH_APP_CURRENT_VERSION/~ynh*/}
seafile_version=$(ynh_app_upstream_version)
if [ "$YNH_APP_CURRENT_VERSION" == '-' ]; then
YNH_APP_CURRENT_VERSION="6.0.9~ynh0"
installed_version=${YNH_APP_CURRENT_VERSION/~ynh*/}
fi
ynh_script_progression --message="Stoping services..."