1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/rocketchat_ynh.git synced 2024-09-03 20:16:25 +02:00
This commit is contained in:
ericgaspar 2021-11-18 10:55:35 +01:00
parent a2f56ab301
commit 7c4e6648ab
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 13 additions and 5 deletions

View file

@ -165,7 +165,7 @@ ynh_script_progression --message="Integrating service in YunoHost..."
yunohost service add $app --description="Team collaboration communication platform" --log="/var/log/$app/$app.log"
#=================================================
# START SYSTEMD SERVICE
# START MONGO SYSTEMD SERVICE
#=================================================
ynh_script_progression --message="Starting a MongoDB service..." --weight=2
@ -178,7 +178,7 @@ ynh_systemd_action --service_name=$mongodb_servicename --action=restart
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=2
ynh_systemd_action --service_name=$app --action=start --log_path=systemd #--line_match="Started The Rocket.Chat server"
ynh_systemd_action --service_name=$app --action=start --log_path=systemd
sleep 120
#=================================================

View file

@ -126,14 +126,22 @@ ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add $app --description="Team collaboration communication platform" --log="/var/log/$app/$app.log"
#=================================================
# START MONGO SYSTEMD SERVICE
#=================================================
ynh_script_progression --message="Starting a MongoDB service..." --weight=2
# Start a mongod service
ynh_exec_warn_less systemctl enable $mongodb_servicename --quiet
ynh_systemd_action --service_name=$mongodb_servicename --action=restart
#=================================================
# START SYSTEMD SERVICE
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=5
# Start a mongod service
ynh_exec_warn_less systemctl enable $mongodb_servicename --quiet
ynh_systemd_action --service_name=$app --action="start" --log_path=systemd
sleep 120
#=================================================
# GENERIC FINALIZATION

View file

@ -160,7 +160,6 @@ ynh_use_logrotate --non-append
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add $app --description="Team collaboration communication platform" --log="/var/log/$app/$app.log"
sleep 120
#=================================================
# START SYSTEMD SERVICE
@ -169,6 +168,7 @@ ynh_script_progression --message="Starting a systemd service..." --weight=10
ynh_systemd_action --service_name=$mongodb_servicename --action=restart --log_path=systemd
ynh_systemd_action --service_name=$app --action=start --log_path=systemd
sleep 120
#=================================================
# RELOAD NGINX