mirror of
https://github.com/YunoHost-Apps/freshrss_ynh.git
synced 2024-09-03 18:36:33 +02:00
[fix][WIP]detect wallabag ?
This commit is contained in:
parent
635f4ba24e
commit
680dfaf241
1 changed files with 4 additions and 4 deletions
|
@ -63,16 +63,16 @@ fi
|
||||||
# Add users
|
# Add users
|
||||||
|
|
||||||
#check wallabag
|
#check wallabag
|
||||||
sudo yunohost app list --installed -f wallabag2 --json | grep -q '"installed": true'
|
blabla=$(sudo yunohost app list --installed -f wallabag2 --json | grep -q '"installed": true')
|
||||||
if [[ "$?" -eq 0 ]]; then
|
if [[ $blabla -eq 0 ]]; then
|
||||||
echo "Detected wallabag V2"
|
echo "Detected wallabag V2"
|
||||||
wallabagPath=$(sudo yunohost app setting wallabag2 path | sed 's#/*$##')
|
wallabagPath=$(sudo yunohost app setting wallabag2 path | sed 's#/*$##')
|
||||||
wallabagUrl=$domain$wallabagPath
|
wallabagUrl=$domain$wallabagPath
|
||||||
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),"
|
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
|
sharingEnable=1
|
||||||
else
|
else
|
||||||
sudo yunohost app list --installed -f wallabag --json | grep -q '"installed": true'
|
blabla=$(sudo yunohost app list --installed -f wallabag --json | grep -q '"installed": true')
|
||||||
if [[ "$?" -eq 0 ]]; then
|
if [[ $blabla -eq 0 ]]; then
|
||||||
echo "Detected wallabag"
|
echo "Detected wallabag"
|
||||||
wallabagPath=$(sudo yunohost app setting wallabag path)
|
wallabagPath=$(sudo yunohost app setting wallabag path)
|
||||||
wallabagUrl=$domain$wallabagPath
|
wallabagUrl=$domain$wallabagPath
|
||||||
|
|
Loading…
Reference in a new issue