mirror of
https://github.com/YunoHost-Apps/ffsync_ynh.git
synced 2024-09-03 18:26:38 +02:00
Fix 'secret' variable - see issue : https://github.com/abeudin/ffsync_ynh/issues/17
This commit is contained in:
parent
7df5d04f0c
commit
ce1535df79
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue