From f446fb912951bec4ede366b257fb3c330491b347 Mon Sep 17 00:00:00 2001 From: magikcypress Date: Wed, 8 Mar 2017 01:57:37 +0100 Subject: [PATCH] Correction de bugs --- conf/nginx.conf | 2 +- scripts/install | 1 + scripts/remove | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 528e8ca..3d1cf06 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,6 +1,6 @@ location __PATHTOCHANGE__ { alias __FINALPATH__/; - index index.html + # index index.html rewrite ^ $scheme://__DOMAINNAME__:6680/musicbox_webclient permanent; diff --git a/scripts/install b/scripts/install index bac1887..9f45b9a 100644 --- a/scripts/install +++ b/scripts/install @@ -87,6 +87,7 @@ sudo sed -i "s@__DOMAINNAME__@$domain@g" /etc/nginx/conf.d/$domain.d/$app.conf sudo sed -i "s@__FINALPATH__@$final_path@g" /etc/nginx/conf.d/$domain.d/$app.conf sudo cp ../conf/index.html $final_path +sudo sed -i "s@__DOMAINNAME__@$domain@g" /etc/nginx/conf.d/$domain.d/$app.conf # Copy config mopidy sudo cp ../conf/mopidy.conf /usr/share/mopidy/conf.d/ diff --git a/scripts/remove b/scripts/remove index fd7130c..870bb26 100644 --- a/scripts/remove +++ b/scripts/remove @@ -29,6 +29,7 @@ fi if [ -d "/root/.local/share/$app" ]; then SECURE_REMOVE '/root/.local/share/$app' fi + SECURE_REMOVE '/usr/local/bin/$app' SECURE_REMOVE '/usr/share/$app' SECURE_REMOVE '/var/lib/$app'