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

scripts: advertise service in admin panel

This commit is contained in:
Pierre de La Morinerie 2017-10-12 18:21:54 +05:30
parent e8c51d4715
commit d79c4fcfe4
4 changed files with 27 additions and 1 deletions

View file

@ -152,12 +152,18 @@ sudo chown mattermost:adm "/var/log/mattermost.log"
ynh_add_nginx_config ynh_add_nginx_config
#================================================= #=================================================
# SETUP SYSTEMD # SYSTEMD CONFIGURATION
#================================================= #=================================================
# Create a dedicated systemd config # Create a dedicated systemd config
ynh_add_systemd_config ynh_add_systemd_config
#=================================================
# ADVERTISE SERVICE IN ADMIN PANEL
#=================================================
sudo yunohost service add "$app" --log "/var/log/${app}.log"
#================================================= #=================================================
# SETUP SSOWAT # SETUP SSOWAT
#================================================= #=================================================

View file

@ -38,6 +38,14 @@ if [ -f "/etc/supervisor/conf.d/${app}.conf" ]; then
sudo rm -f "/etc/supervisor/conf.d/${app}.conf" sudo rm -f "/etc/supervisor/conf.d/${app}.conf"
fi fi
#=================================================
# REMOVE SERVICE FROM ADMIN PANEL
#=================================================
if sudo yunohost service status | grep -q "$app"; then
sudo yunohost service remove "$app"
fi
#================================================= #=================================================
# REMOVE THE MYSQL DATABASE # REMOVE THE MYSQL DATABASE
#================================================= #=================================================

View file

@ -99,6 +99,12 @@ fi
ynh_restore_file "/etc/systemd/system/$app.service" ynh_restore_file "/etc/systemd/system/$app.service"
sudo systemctl enable "$app" sudo systemctl enable "$app"
#=================================================
# ADVERTISE SERVICE IN ADMIN PANEL
#=================================================
sudo yunohost service add "$app" --log "/var/log/${app}.log"
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION
#================================================= #=================================================

View file

@ -109,6 +109,12 @@ ynh_add_nginx_config
ynh_add_systemd_config ynh_add_systemd_config
#=================================================
# ADVERTISE SERVICE IN ADMIN PANEL
#=================================================
sudo yunohost service add "$app" --log "/var/log/${app}.log"
#================================================= #=================================================
# SPECIFIC UPGRADE STEPS # SPECIFIC UPGRADE STEPS
#================================================= #=================================================