mirror of
https://github.com/YunoHost-Apps/scrumblr_ynh.git
synced 2024-09-03 20:16:29 +02:00
Update install
This commit is contained in:
parent
789b895a25
commit
cc13793b94
1 changed files with 19 additions and 7 deletions
|
@ -146,12 +146,19 @@ popd
|
|||
service redis-server start
|
||||
|
||||
#=================================================
|
||||
# Configure init script
|
||||
# INTEGRATE SERVICE IN YUNOHOST
|
||||
#=================================================
|
||||
ynh_script_progression --message="Integrating service in YunoHost..." --time --weight=1
|
||||
|
||||
systemctl daemon-reload
|
||||
systemctl enable "$app".service
|
||||
systemctl start "$app".service
|
||||
yunohost service add $app --description "A short description of the app" --log "/var/log/$app/$app.log"
|
||||
|
||||
#=================================================
|
||||
# START SYSTEMD SERVICE
|
||||
#=================================================
|
||||
ynh_script_progression --message="Starting a systemd service..." --time --weight=1
|
||||
|
||||
# Start a systemd service
|
||||
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
|
||||
|
||||
#=================================================
|
||||
# Set Public or private
|
||||
|
@ -165,9 +172,14 @@ then
|
|||
fi
|
||||
|
||||
#=================================================
|
||||
# Reload Service
|
||||
# RELOAD NGINX
|
||||
#=================================================
|
||||
ynh_script_progression --message="Reloading NGINX web server..." --time --weight=1
|
||||
|
||||
ynh_systemd_action --service_name=nginx --action=reload
|
||||
yunohost service add "$app" --log /var/log/"$app"/"$app".log
|
||||
yunohost app ssowatconf
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
#=================================================
|
||||
|
||||
ynh_script_progression --message="Installation of $app completed" --time --last
|
||||
|
|
Loading…
Add table
Reference in a new issue