1
0
Fork 0
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:
admin 2014-07-10 11:19:25 +00:00
parent d8c625fa1d
commit eb356d655f
3 changed files with 13 additions and 5 deletions

View file

@ -8,7 +8,7 @@
"developer": { "developer": {
"name": "Moul", "name": "Moul",
"email": "moul@moul.re", "email": "moul@moul.re",
"url": "url": "yunohost.org"
}, },
"multi_instance": "true", "multi_instance": "true",
"arguments": { "arguments": {

View file

@ -33,6 +33,9 @@ sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/yacy.conf
# Ajouter le service YaCy au monitoring YunoHost # Ajouter le service YaCy au monitoring YunoHost
sudo yunohost service add yacy --log /var/log/yacy/yacy00.log 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 # Reload Nginx and regenerate SSOwat conf
sudo service nginx reload sudo service nginx reload
sudo yunohost app ssowatconf sudo yunohost app ssowatconf

View file

@ -1,6 +1,11 @@
#!/bin/bash #!/bin/bash
db_user=yacy #Remove official Debian package
db_name=yacy sudo apt-get remove yacy -y -qq
root_pwd=$(sudo cat /etc/yunohost/mysql)
domain=$(sudo yunohost app setting yacy domain) #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