From 5a76a7d0853b6d7895afaf1caab8b712d44e918d Mon Sep 17 00:00:00 2001 From: abeudin Date: Fri, 28 Aug 2015 10:09:19 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 923dd2d..e96cf47 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -30,6 +30,12 @@ sudo chown ffsync:ffsync -R $final_path sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf sed -i "s@ALIASTOCHANGE@$final_path/@g" ../conf/nginx.conf sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/ffsync.conf +sudo cp ../conf/syncserver.ini $final_path/syncserver.ini +sudo sed -i -e "s@ynhbaseurl@$domain$path@g" $final_path/syncserver.ini +sudo sed -i -e "s@changesecret@$secret@g" $final_path/syncserver.ini +sudo sed -i "s/yunouser/$db_user/g" $final_path/syncserver.ini +sudo sed -i "s/yunopass/$db_pwd/g" $final_path/syncserver.ini +sudo sed -i "s/yunobase/$db_user/g" $final_path/syncserver.ini # stop service before upgrade service ffsync stop