From 8bef7061efc75709a06ec1903daa6abe6011b747 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 25 Jan 2016 17:18:58 +0000 Subject: [PATCH] Read configs for project website and repo --- src/freedombone | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/freedombone b/src/freedombone index 93e1bbeb..ea98b523 100755 --- a/src/freedombone +++ b/src/freedombone @@ -914,6 +914,12 @@ function read_configuration { if [[ $CONFIGURATION_FILE != "/root/${PROJECT_NAME}.cfg" ]]; then cp $CONFIGURATION_FILE /root/${PROJECT_NAME}.cfg fi + if grep -q "PROJECT_WEBSITE" $CONFIGURATION_FILE; then + PROJECT_WEBSITE=$(grep "PROJECT_WEBSITE" $CONFIGURATION_FILE | awk -F '=' '{print $2}') + fi + if grep -q "PROJECT_REPO" $CONFIGURATION_FILE; then + PROJECT_REPO=$(grep "PROJECT_REPO" $CONFIGURATION_FILE | awk -F '=' '{print $2}') + fi if grep -q "ONION_ONLY" $CONFIGURATION_FILE; then ONION_ONLY=$(grep "ONION_ONLY" $CONFIGURATION_FILE | awk -F '=' '{print $2}') fi