mirror of
https://github.com/YunoHost-Apps/yacy_ynh.git
synced 2024-09-03 18:05:59 +02:00
Add remove script
This commit is contained in:
parent
d8c625fa1d
commit
eb356d655f
3 changed files with 13 additions and 5 deletions
|
@ -8,7 +8,7 @@
|
|||
"developer": {
|
||||
"name": "Moul",
|
||||
"email": "moul@moul.re",
|
||||
"url":
|
||||
"url": "yunohost.org"
|
||||
},
|
||||
"multi_instance": "true",
|
||||
"arguments": {
|
||||
|
|
|
@ -33,6 +33,9 @@ sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/yacy.conf
|
|||
# Ajouter le service YaCy au monitoring YunoHost
|
||||
sudo yunohost service add yacy --log /var/log/yacy/yacy00.log
|
||||
|
||||
#Relancer le service YaCy avec la nouvelle configuration
|
||||
sudo yunohost service yacy restart
|
||||
|
||||
# Reload Nginx and regenerate SSOwat conf
|
||||
sudo service nginx reload
|
||||
sudo yunohost app ssowatconf
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
db_user=yacy
|
||||
db_name=yacy
|
||||
root_pwd=$(sudo cat /etc/yunohost/mysql)
|
||||
domain=$(sudo yunohost app setting yacy domain)
|
||||
#Remove official Debian package
|
||||
sudo apt-get remove yacy -y -qq
|
||||
|
||||
#Remove YaCy service to YunoHost monitoring
|
||||
sudo yunohost service remove yacy
|
||||
|
||||
#Reload Nginx and regenerate SSOwat conf
|
||||
sudo service nginx reload
|
||||
sudo yunohost app ssowatconf
|
||||
|
|
Loading…
Add table
Reference in a new issue