From 569410b9ccdabdaea83ccf4fc107cfcdfb271b6f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 1 May 2018 16:19:40 +0100 Subject: [PATCH] quotes --- src/freedombone-app-xmpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/freedombone-app-xmpp b/src/freedombone-app-xmpp index 93f02309..71358c94 100755 --- a/src/freedombone-app-xmpp +++ b/src/freedombone-app-xmpp @@ -644,7 +644,7 @@ function remove_xmpp { function_check remove_onion_service remove_onion_service xmpp 5222 5223 5269 - sed -i '/HiddenServiceVersion 2/d' $ONION_SERVICES_FILE + sed -i '/HiddenServiceVersion 2/d' "$ONION_SERVICES_FILE" apt-mark -q unhold prosody apt-get -yq remove --purge prosody @@ -1131,11 +1131,11 @@ function install_xmpp { echo $'No Tor installation found. xmpp onion site cannot be configured.' exit 877367 fi - if ! grep -q "hidden_service_xmpp" $ONION_SERVICES_FILE; then + if ! grep -q "hidden_service_xmpp" "$ONION_SERVICES_FILE"; then { echo 'HiddenServiceDir /var/lib/tor/hidden_service_xmpp/'; echo 'HiddenServiceVersion 2'; echo "HiddenServicePort 5222 127.0.0.1:5222"; - echo "HiddenServicePort 5269 127.0.0.1:5269"; } >> $ONION_SERVICES_FILE + echo "HiddenServicePort 5269 127.0.0.1:5269"; } >> "$ONION_SERVICES_FILE" echo $'Added onion site for xmpp chat' fi