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

[enh] Add wekan services to ynh

This commit is contained in:
ljf 2017-11-08 21:43:16 +01:00
parent 7fda3a0a9f
commit 45c6ec233a
4 changed files with 8 additions and 1 deletions

View file

@ -209,3 +209,5 @@ EOF
chmod +x "/etc/cron.daily/node_update" chmod +x "/etc/cron.daily/node_update"
} }
ynh_version_gt() { test "$(printf '%s\n' "$@" | sort -V | head -n 1)" != "$1"; }

View file

@ -118,6 +118,7 @@ find "$final_path" -type d -print0 | xargs -0 chmod 750
# ADD SERVICE IN ADMIN PANEL # ADD SERVICE IN ADMIN PANEL
#================================================= #=================================================
yunohost service add mongod --log "/var/log/mongodb.log" yunohost service add mongod --log "/var/log/mongodb.log"
yunohost service add wekan
#================================================= #=================================================
# SETUP SSOWAT # SETUP SSOWAT

View file

@ -93,6 +93,7 @@ find "$final_path" -type d -print0 | xargs -0 chmod 750
# ADD SERVICE IN ADMIN PANEL # ADD SERVICE IN ADMIN PANEL
#================================================= #=================================================
yunohost service add mongod --log "/var/log/mongodb.log" yunohost service add mongod --log "/var/log/mongodb.log"
yunohost service add wekan
#================================================= #=================================================
# SETUP SSOWAT # SETUP SSOWAT

View file

@ -40,10 +40,13 @@ ynh_abort_if_errors # Exit if an error occurs during the execution of the script
# ENSURE DOWNWARD COMPATIBILITY # ENSURE DOWNWARD COMPATIBILITY
#================================================= #=================================================
if [ "${version}" = "0.45-1" ]; then if ynh_version_gt "0.45-2" "${version}" ; then
ynh_replace_string "Environment=ROOT_URL=http://127.0.0.1:$port$path_url" "Environment=ROOT_URL=https://$domain$path_url/" "/etc/systemd/system/$app.service" ynh_replace_string "Environment=ROOT_URL=http://127.0.0.1:$port$path_url" "Environment=ROOT_URL=https://$domain$path_url/" "/etc/systemd/system/$app.service"
systemctl daemon-reload systemctl daemon-reload
fi fi
if ynh_version_gt "0.45-3" "${version}" ; then
yunohost service add wekan
fi
#================================================= #=================================================
# STANDARD UPGRADE STEPS # STANDARD UPGRADE STEPS