From ff82198d17f464a9a121d80ba93666ce90e9fb2b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 21 Dec 2014 14:15:33 +0000 Subject: [PATCH] Dealing with parameters --- install-freedombone.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/install-freedombone.sh b/install-freedombone.sh index 5b5dc6a4..8516a225 100755 --- a/install-freedombone.sh +++ b/install-freedombone.sh @@ -2235,11 +2235,17 @@ function restore_from_friend { echo 'fi' >> /usr/bin/$RESTORE_FROM_FRIEND_SCRIPT_NAME echo '' >> /usr/bin/$RESTORE_FROM_FRIEND_SCRIPT_NAME echo -n 'REMOTE_SERVER=$(grep -i "$SERVER_NAME" ' >> /usr/bin/$RESTORE_FROM_FRIEND_SCRIPT_NAME - echo "$FRIENDS_SERVERS_LIST | awk -F ' ' '{print $1}')" >> /usr/bin/$RESTORE_FROM_FRIEND_SCRIPT_NAME + echo -n "$FRIENDS_SERVERS_LIST | awk -F ' ' '{print " >> /usr/bin/$RESTORE_FROM_FRIEND_SCRIPT_NAME + echo -n '$1' >> /usr/bin/$RESTORE_FROM_FRIEND_SCRIPT_NAME + echo "}')" >> /usr/bin/$RESTORE_FROM_FRIEND_SCRIPT_NAME echo -n 'REMOTE_SSH_PORT=$(grep -i "$SERVER_NAME" ' >> /usr/bin/$RESTORE_FROM_FRIEND_SCRIPT_NAME - echo "$FRIENDS_SERVERS_LIST | awk -F ' ' '{print $2}')" >> /usr/bin/$RESTORE_FROM_FRIEND_SCRIPT_NAME + echo -n "$FRIENDS_SERVERS_LIST | awk -F ' ' '{print " >> /usr/bin/$RESTORE_FROM_FRIEND_SCRIPT_NAME + echo -n '$2' >> /usr/bin/$RESTORE_FROM_FRIEND_SCRIPT_NAME + echo "}')" >> /usr/bin/$RESTORE_FROM_FRIEND_SCRIPT_NAME echo -n 'REMOTE_PASSWORD=$(grep -i "$SERVER_NAME" ' >> /usr/bin/$RESTORE_FROM_FRIEND_SCRIPT_NAME - echo "$FRIENDS_SERVERS_LIST | awk -F ' ' '{print $3}')" >> /usr/bin/$RESTORE_FROM_FRIEND_SCRIPT_NAME + echo -n "$FRIENDS_SERVERS_LIST | awk -F ' ' '{print " >> /usr/bin/$RESTORE_FROM_FRIEND_SCRIPT_NAME + echo -n '$3' >> /usr/bin/$RESTORE_FROM_FRIEND_SCRIPT_NAME + echo "}')" >> /usr/bin/$RESTORE_FROM_FRIEND_SCRIPT_NAME echo '' >> /usr/bin/$RESTORE_FROM_FRIEND_SCRIPT_NAME echo '# Check that a backup key exists' >> /usr/bin/$RESTORE_FROM_FRIEND_SCRIPT_NAME