From 23ca086e121dbd843428fcd0e17bfe8d1f78fa5d Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Mon, 25 Aug 2014 03:22:09 -0700 Subject: [PATCH] Fix token replacement --- src/scripts/restore.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/scripts/restore.sh b/src/scripts/restore.sh index 1616aa2a2..cf8d8a327 100755 --- a/src/scripts/restore.sh +++ b/src/scripts/restore.sh @@ -51,8 +51,10 @@ rm -rf $HOME/.yellowtent/* tar zxvf /tmp/restore.tar.gz -C $HOME/.yellowtent # replace the token -$HOME/box/node_modules/.bin/json -I -f $HOME/.yellowtent/cloudron.conf -e 'this.token="$TOKEN"' +cat $HOME/.yellowtent/cloudron.conf +$HOME/box/node_modules/.bin/json -I -f $HOME/.yellowtent/cloudron.conf -e "this.token=\"$TOKEN\"" chown yellowtent:yellowtent $HOME/.yellowtent/cloudron.conf +cat $HOME/.yellowtent/cloudron.conf echo "Starting box" supervisorctl start box