From ce1535df795eb752b52cc940f165c7434b1df646 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9?= Date: Wed, 13 Jan 2016 21:20:58 +0100 Subject: [PATCH] Fix 'secret' variable - see issue : https://github.com/abeudin/ffsync_ynh/issues/17 --- scripts/install | 2 +- scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index d1633d5..55cd2bd 100644 --- a/scripts/install +++ b/scripts/install @@ -22,7 +22,7 @@ sudo yunohost app setting ffsync mysqlpwd -v $db_pwd # Generate random password and save secret=$(head -c 20 /dev/urandom | sha1sum | cut -d " " -f1) -sudo yunohost app setting $app secret -v $secret +sudo yunohost app setting ffsync secret -v $secret # Check depends installation sudo apt-get install make python-dev python-virtualenv -y diff --git a/scripts/upgrade b/scripts/upgrade index 73a0ef2..396f0c9 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -13,7 +13,7 @@ secret=$(sudo yunohost app setting ffsync secret) if [[ -z $secret ]] then secret=$(sudo grep "secret =" $final_path/syncserver.ini | cut -d" " -f3) - sudo yunohost app setting $app secret -v $secret + sudo yunohost app setting ffsync secret -v $secret fi # Check Swap