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

Set log path to systemd

This commit is contained in:
ericgaspar 2021-02-28 12:19:53 +01:00
parent c61af5713f
commit a11dfd74cd
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 5 additions and 5 deletions

View file

@ -130,7 +130,7 @@ ynh_systemd_action --action=reload --service_name=nginx
ynh_script_progression --message="Restarting Etherpad..." --weight=10
# Wait for etherpad to be fully started
ynh_systemd_action --action=restart --line_match="You can access your Etherpad instance at" --log_path="/var/log/$app/etherpad.log" --timeout="120"
ynh_systemd_action --action=restart --log_path=systemd --line_match="Your Etherpad version is"
#=================================================
# DEACTIVE MAINTENANCE MODE

View file

@ -16,7 +16,7 @@ source /usr/share/yunohost/helpers
app=$YNH_APP_INSTANCE_NAME
final_path=$(ynh_app_setting_get $app final_path)
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
#=================================================
# SPECIFIC CODE
@ -321,7 +321,7 @@ apply_config() {
if [ $restart_etherpad -eq 1 ]
then
# Wait for Etherpad to be fully started
ynh_systemd_action --action=restart --line_match="You can access your Etherpad instance at" --log_path="/var/log/$app/etherpad.log" --timeout="120"
ynh_systemd_action --action=restart --log_path=systemd --line_match="Your Etherpad version is"
fi
#=================================================

View file

@ -171,7 +171,7 @@ ynh_systemd_action --action=reload --service_name=nginx
ynh_script_progression --message="Restarting Etherpad..." --weight=8
# Wait for etherpad to be fully started
ynh_systemd_action --action=restart --line_match="You can access your Etherpad instance at" --log_path="/var/log/$app/etherpad.log" --timeout="120"
ynh_systemd_action --action=restart --log_path=systemd --line_match="Your Etherpad version is"
#=================================================
# DEACTIVE MAINTENANCE MODE

View file

@ -397,7 +397,7 @@ ynh_systemd_action --action=reload --service_name=nginx
ynh_script_progression --message="Restarting Etherpad..." --weight=9
# Wait for etherpad to be fully started
ynh_systemd_action --action=restart --line_match="You can access your Etherpad instance at" --log_path="/var/log/$app/etherpad.log" --timeout="120"
ynh_systemd_action --action=restart --log_path=systemd --line_match="Your Etherpad version is"
#=================================================
# DEACTIVE MAINTENANCE MODE