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

Fix version comparison during upgrade

This commit is contained in:
Alexandre Aubin 2020-10-28 16:22:48 +01:00 committed by GitHub
parent 401e6e5415
commit 1fdf878a8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -99,8 +99,8 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path=systemd --line
# UPGRADE FROM PREVIOUS VERSION
#=================================================
if ynh_version_gt "1.0.0" "${previous_version}" ; then
ynh_script_progression --message="Upgrade configuration to 1.0.0..."
if ynh_version_gt "1.0.0~ynh1" "${previous_version}" ; then
ynh_script_progression --message="Upgrade configuration to 1.0.0..."
ynh_user_password=$(ynh_string_random --length=30)
ynh_app_setting_set --app=$app --key=ynh_user_password --value=$ynh_user_password