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:
parent
43b005d771
commit
9090436531
4 changed files with 12 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -117,5 +117,6 @@ sudo cp -a ./data/. "/var/lib/monitorix/."
|
|||
|
||||
|
||||
# Restart webserver
|
||||
sudo service nginx reload
|
||||
sudo service monitorix restart
|
||||
sudo service monitorix restart
|
||||
sudo yunohost app ssowatconf
|
||||
sudo service nginx reload
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue