Reading the project repo

This commit is contained in:
Bob Mottram 2016-10-10 14:21:08 +01:00
parent 59e04ecfe2
commit 7bac22dbf7
3 changed files with 11 additions and 7 deletions

View File

@ -35,7 +35,14 @@ PROJECT_NAME='freedombone'
export TEXTDOMAIN=${PROJECT_NAME}-image
export TEXTDOMAINDIR="/usr/share/locale"
#get the project repo
PROJECT_REPO="https://github.com/bashrc/${PROJECT_NAME}"
UTILS_FILES=/usr/share/${PROJECT_NAME}/utils/${PROJECT_NAME}-utils-*
for f in $UTILS_FILES
do
source $f
done
read_config_param PROJECT_REPO
# recommended RAM for virtual machines
VM_MEMORY='1G'

View File

@ -47,13 +47,7 @@ for f in $UTILS_FILES
do
source $f
done
if [ -f $CONFIGURATION_FILE ]; then
# read the location of the main project repo
if grep -q "PROJECT_REPO" $CONFIGURATION_FILE; then
PROJECT_REPO=$(grep "PROJECT_REPO" $CONFIGURATION_FILE | awk -F '=' '{print $2}')
fi
fi
read_config_param PROJECT_REPO
update-ca-certificates

View File

@ -257,6 +257,9 @@ function setup_firewall {
}
function setup_utils {
read_config_param "PROJECT_REPO"
write_config_param "PROJECT_REPO" "$PROJECT_REPO"
function_check create_completion_file
create_completion_file