1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/monitorix_ynh.git synced 2024-09-03 19:46:06 +02:00

Add monitorix as Service

This commit is contained in:
Josué Tille 2017-05-26 15:02:19 +02:00
parent 43b005d771
commit 9090436531
4 changed files with 12 additions and 4 deletions

View file

@ -62,6 +62,10 @@ sed -i "s@MYSQL_USER@$dbuser@g" $monitorix_conf
sed -i "s@MYSQL_PASSWORD@$dbpass@g" $monitorix_conf
sudo cp $monitorix_conf /etc/monitorix/monitorix.conf
# register yunohost service
sudo yunohost service add monitorix
# Reload services
sudo service nginx reload
sudo service monitorix restart
sudo yunohost app ssowatconf
sudo service nginx reload

View file

@ -24,5 +24,7 @@ ynh_mysql_drop_user "$dbuser" || true
# Autoremove package
ynh_package_autoremove monitorix
sudo yunohost service remove monitorix
# Reload nginx service
sudo service nginx reload

View file

@ -117,5 +117,6 @@ sudo cp -a ./data/. "/var/lib/monitorix/."
# Restart webserver
sudo service nginx reload
sudo service monitorix restart
sudo yunohost app ssowatconf
sudo service nginx reload

View file

@ -47,5 +47,6 @@ sed -i "s@MYSQL_PASSWORD@$dbpass@g" $monitorix_conf
sudo cp $monitorix_conf /etc/monitorix/monitorix.conf
# Reload services
sudo service nginx reload
sudo service monitorix restart
sudo yunohost app ssowatconf
sudo service nginx reload