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:
parent
7b8aacd323
commit
aa0a57c392
2 changed files with 7 additions and 3 deletions
|
@ -153,7 +153,6 @@ find "$final_path" -type d -print0 | xargs -0 chmod 750
|
||||||
ynh_script_progression --message="Integrating service in YunoHost..."
|
ynh_script_progression --message="Integrating service in YunoHost..."
|
||||||
|
|
||||||
yunohost service add $app --description "Wekan daemon"
|
yunohost service add $app --description "Wekan daemon"
|
||||||
yunohost service add $mongodb_servicename --description "MongoDB daemon" --log "/var/log/mongodb/mongodb.log"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
|
|
|
@ -91,7 +91,6 @@ fi
|
||||||
|
|
||||||
if ynh_version_gt "0.45-3" "${previous_version}" ; then
|
if ynh_version_gt "0.45-3" "${previous_version}" ; then
|
||||||
ynh_script_progression --message="Upgrading to 0.45-3..."
|
ynh_script_progression --message="Upgrading to 0.45-3..."
|
||||||
yunohost service add $app --description "Wekan daemon"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ynh_version_gt "1.07~ynh2" "${previous_version}" ; then
|
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
|
rm -f /etc/apt/sources.list.d/mongodb-org-3.2.list
|
||||||
ynh_remove_app_dependencies
|
ynh_remove_app_dependencies
|
||||||
ynh_install_app_dependencies "mongodb mongodb-server"
|
ynh_install_app_dependencies "mongodb mongodb-server"
|
||||||
yunohost service add $app --description "Wekan daemon"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ynh_version_gt "2.56~ynh1" "${previous_version}" ; then
|
if ynh_version_gt "2.56~ynh1" "${previous_version}" ; then
|
||||||
|
@ -212,6 +210,13 @@ chown -R $app: "$final_path"
|
||||||
chmod -R 640 "$final_path"
|
chmod -R 640 "$final_path"
|
||||||
find "$final_path" -type d -print0 | xargs -0 chmod 750
|
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
|
# START SYSTEMD SERVICE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue