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

Found some inconsistencies in the 'yunohost service add' commands between install, upgrade and restore:

This commit is contained in:
yalh76 2020-12-24 20:09:32 +01:00
parent 7b8aacd323
commit aa0a57c392
2 changed files with 7 additions and 3 deletions

View file

@ -153,7 +153,6 @@ find "$final_path" -type d -print0 | xargs -0 chmod 750
ynh_script_progression --message="Integrating service in YunoHost..."
yunohost service add $app --description "Wekan daemon"
yunohost service add $mongodb_servicename --description "MongoDB daemon" --log "/var/log/mongodb/mongodb.log"
#=================================================
# START SYSTEMD SERVICE

View file

@ -91,7 +91,6 @@ fi
if ynh_version_gt "0.45-3" "${previous_version}" ; then
ynh_script_progression --message="Upgrading to 0.45-3..."
yunohost service add $app --description "Wekan daemon"
fi
if ynh_version_gt "1.07~ynh2" "${previous_version}" ; then
@ -102,7 +101,6 @@ if ynh_version_gt "1.07~ynh2" "${previous_version}" ; then
rm -f /etc/apt/sources.list.d/mongodb-org-3.2.list
ynh_remove_app_dependencies
ynh_install_app_dependencies "mongodb mongodb-server"
yunohost service add $app --description "Wekan daemon"
fi
if ynh_version_gt "2.56~ynh1" "${previous_version}" ; then
@ -212,6 +210,13 @@ chown -R $app: "$final_path"
chmod -R 640 "$final_path"
find "$final_path" -type d -print0 | xargs -0 chmod 750
#=================================================
# INTEGRATE SERVICE IN YUNOHOST
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..."
yunohost service add $app --description "Wekan daemon"
#=================================================
# START SYSTEMD SERVICE
#=================================================