mirror of
https://github.com/YunoHost-Apps/kresus_ynh.git
synced 2024-09-03 19:36:10 +02:00
Take (some^^)linter messages into account
This commit is contained in:
parent
72846cc2a2
commit
faef60eab7
2 changed files with 4 additions and 4 deletions
|
@ -18,7 +18,6 @@
|
||||||
"multi_instance": true,
|
"multi_instance": true,
|
||||||
"services": [
|
"services": [
|
||||||
"nginx",
|
"nginx",
|
||||||
"node"
|
|
||||||
],
|
],
|
||||||
"arguments": {
|
"arguments": {
|
||||||
"install" : [
|
"install" : [
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -u
|
||||||
|
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
# Source YunoHost helpers
|
# Source YunoHost helpers
|
||||||
|
@ -11,9 +13,8 @@ domain=$(ynh_app_setting_get "$app" domain)
|
||||||
# Remove sources
|
# Remove sources
|
||||||
systemctl stop $app
|
systemctl stop $app
|
||||||
systemctl disable $app
|
systemctl disable $app
|
||||||
sudo rm -rf /home/yunohost.app/$app
|
ynh_secure_remove /etc/nginx/conf.d/$domain.d/$app.conf
|
||||||
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
|
ynh_secure_remove /etc/systemd/system/$app.service
|
||||||
sudo rm -f /etc/systemd/system/$app.service
|
|
||||||
|
|
||||||
# Reload nginx service
|
# Reload nginx service
|
||||||
sudo service nginx reload
|
sudo service nginx reload
|
||||||
|
|
Loading…
Reference in a new issue