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:
parent
7fda3a0a9f
commit
45c6ec233a
4 changed files with 8 additions and 1 deletions
|
@ -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"; }
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue