From 63da94ea342591e1b6c1719b91dcc811c9531c78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Sun, 4 Sep 2016 11:41:13 +0200 Subject: [PATCH] [fix][WIP]fix wallabag v2 sharing --- scripts/install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 8f9bf09..df3644d 100755 --- a/scripts/install +++ b/scripts/install @@ -65,9 +65,9 @@ fi #check wallabag if [[ $(sudo yunohost app list --installed -f wallabag2 | grep -q 'installed: True') -eq 0 ]]; then echo "Detected wallabag V2" - wallabagPath=$(sudo yunohost app setting wallabag2 path) + wallabagPath=$(sudo yunohost app setting wallabag2 path | sed 's#/*$##') wallabagUrl=$domain$wallabagPath - sharingWallabag="'sharing' => \n\tarray( \n\t\t0 => \n\t\tarray(\n\t\t\t'type' => 'wallabag',\n\t\t\t'name' => 'Wallabag',\n\t\t\t'url' => 'https://$wallabagUrl',\n\t\t)," + sharingWallabag="'sharing' => \n\tarray( \n\t\t0 => \n\t\tarray(\n\t\t\t'type' => 'wallabagv2',\n\t\t\t'name' => 'Wallabag',\n\t\t\t'url' => 'https://$wallabagUrl',\n\t\t)," sharingEnable=1 elif [[ $(sudo yunohost app list --installed -f wallabag | grep -q 'installed: True') -eq 0 ]]; then echo "Detected wallabag"