1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/freshrss_ynh.git synced 2024-09-03 18:36:33 +02:00

[fix]comparison still failing

This commit is contained in:
Clément 2015-02-09 17:45:31 +01:00
parent fb2369c155
commit 8d9722ad13

View file

@ -60,6 +60,7 @@ if [[ $(sudo yunohost app list -f wallabag | /bin/grep -q "installed: True") -eq
wallabagUrl=$domain$wallabagPath wallabagUrl=$domain$wallabagPath
# sharingWallabag="'sharing' => array( 0 => array('type' => 'wallabag','name' => 'Wallabag','url' => 'https://$wallabagUrl',)," # sharingWallabag="'sharing' => array( 0 => array('type' => 'wallabag','name' => 'Wallabag','url' => 'https://$wallabagUrl',),"
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' => 'wallabag',\n\t\t\t'name' => 'Wallabag',\n\t\t\t'url' => 'https://$wallabagUrl',\n\t\t),"
sharingEnable = 1
fi fi
freshrss_users=$(ldapsearch -h localhost -b ou=users,dc=yunohost,dc=org -x objectClass=mailAccount uid | grep uid: | sed 's/uid: //' | xargs) freshrss_users=$(ldapsearch -h localhost -b ou=users,dc=yunohost,dc=org -x objectClass=mailAccount uid | grep uid: | sed 's/uid: //' | xargs)
@ -79,7 +80,7 @@ do
sudo cp -r $final_path/data/users/_/ $final_path/data/users/$myuser sudo cp -r $final_path/data/users/_/ $final_path/data/users/$myuser
sudo mv $final_path/data/users/$myuser/config.default.php $final_path/data/users/$myuser/config.php sudo mv $final_path/data/users/$myuser/config.default.php $final_path/data/users/$myuser/config.php
if [[ "$sharingWallabag" -ne '' ]]; then if [[ sharingEnable -e '1' ]]; then
sudo sed -i "s@'sharing'\ =>\ array\ (@$sharingWallabag@g" $final_path/data/users/$myuser/config.php sudo sed -i "s@'sharing'\ =>\ array\ (@$sharingWallabag@g" $final_path/data/users/$myuser/config.php
fi fi
done done