Reading the project repo
This commit is contained in:
parent
59e04ecfe2
commit
7bac22dbf7
|
@ -35,7 +35,14 @@ PROJECT_NAME='freedombone'
|
||||||
export TEXTDOMAIN=${PROJECT_NAME}-image
|
export TEXTDOMAIN=${PROJECT_NAME}-image
|
||||||
export TEXTDOMAINDIR="/usr/share/locale"
|
export TEXTDOMAINDIR="/usr/share/locale"
|
||||||
|
|
||||||
|
#get the project repo
|
||||||
PROJECT_REPO="https://github.com/bashrc/${PROJECT_NAME}"
|
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
|
# recommended RAM for virtual machines
|
||||||
VM_MEMORY='1G'
|
VM_MEMORY='1G'
|
||||||
|
|
|
@ -47,13 +47,7 @@ for f in $UTILS_FILES
|
||||||
do
|
do
|
||||||
source $f
|
source $f
|
||||||
done
|
done
|
||||||
|
read_config_param PROJECT_REPO
|
||||||
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
|
|
||||||
|
|
||||||
update-ca-certificates
|
update-ca-certificates
|
||||||
|
|
||||||
|
|
|
@ -257,6 +257,9 @@ function setup_firewall {
|
||||||
}
|
}
|
||||||
|
|
||||||
function setup_utils {
|
function setup_utils {
|
||||||
|
read_config_param "PROJECT_REPO"
|
||||||
|
write_config_param "PROJECT_REPO" "$PROJECT_REPO"
|
||||||
|
|
||||||
function_check create_completion_file
|
function_check create_completion_file
|
||||||
create_completion_file
|
create_completion_file
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue