1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/etherpad_ynh.git synced 2024-09-03 18:36:10 +02:00
This commit is contained in:
ericgaspar 2020-12-07 13:39:39 +01:00
parent 8b295c4b7f
commit f6e5ce6f2b
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 10 additions and 11 deletions

View file

@ -114,7 +114,7 @@ ynh_systemd_action --service_name=nginx --action=reload
ynh_script_progression --message="Starting a systemd service..." --weight=6
# Start a systemd service
ynh_systemd_action --action=restart --log_path="systemd" #--line_match="Your Etherpad version is" --timeout="120" #--service_name=$app
ynh_systemd_action --action=restart --log_path="systemd" --line_match="Your Etherpad version is" --timeout="120" #--service_name=$app
#=================================================
# END OF SCRIPT

View file

@ -94,15 +94,6 @@ ynh_system_user_create --username=$app --home_dir=$final_path
chown -R $app: $final_path
chmod 600 $final_path/credentials.json
#=================================================
# RESTORE SYSTEMD
#=================================================
ynh_script_progression --message="Restoring the systemd configuration..." --weight=8
#ynh_restore_file --origin_path="/etc
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
systemctl enable $app.service --quiet
#=================================================
# INTEGRATE SERVICE IN YUNOHOST
#=================================================
@ -110,12 +101,20 @@ ynh_script_progression --message="Integrating service in YunoHost..." --weight=3
yunohost service add $app --description="Collaborative editor." --log="/var/log/$app/$app.log"
#=================================================
# RESTORE SYSTEMD
#=================================================
ynh_script_progression --message="Restoring the systemd configuration..." --weight=8
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
systemctl enable $app.service --quiet
#=================================================
# START SYSTEMD SERVICE
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=8
ynh_systemd_action --service_name=$app --action=restart --log_path="systemd" #--line_match="Your Etherpad version is" --timeout="120"
ynh_systemd_action --service_name=$app --action=restart --log_path="systemd" --line_match="Your Etherpad version is" --timeout="120"
#=================================================
# GENERIC FINALIZATION