diff --git a/manifest.json b/manifest.json index 943a59c..281bdbf 100644 --- a/manifest.json +++ b/manifest.json @@ -8,7 +8,7 @@ "developer": { "name": "Moul", "email": "moul@moul.re", - "url": + "url": "yunohost.org" }, "multi_instance": "true", "arguments": { diff --git a/scripts/install b/scripts/install index 696ead2..c1f2173 100644 --- a/scripts/install +++ b/scripts/install @@ -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 diff --git a/scripts/remove b/scripts/remove index bfcd77b..02edf12 100644 --- a/scripts/remove +++ b/scripts/remove @@ -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