Skip to content
Snippets Groups Projects
Commit 7bac22db authored by Bob Mottram's avatar Bob Mottram
Browse files

Reading the project repo

parent 59e04ecf
No related branches found
No related tags found
No related merge requests found
......@@ -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'
......
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment