Beginning of setting the project repo
This commit is contained in:
parent
ca6d0269bc
commit
21ea7a8459
|
@ -47,6 +47,8 @@ MINIMUM_PASSWORD_LENGTH=8
|
||||||
VOIP_PORT=64738
|
VOIP_PORT=64738
|
||||||
VOIP_ONION_PORT=8095
|
VOIP_ONION_PORT=8095
|
||||||
|
|
||||||
|
PROJECT_REPO="https://github.com/bashrc/${PROJECT_NAME}"
|
||||||
|
|
||||||
USB_DRIVE=sdb
|
USB_DRIVE=sdb
|
||||||
# get default USB from config file
|
# get default USB from config file
|
||||||
CONFIG_FILE=$HOME/${PROJECT_NAME}.cfg
|
CONFIG_FILE=$HOME/${PROJECT_NAME}.cfg
|
||||||
|
@ -57,6 +59,10 @@ if [ -f $CONFIG_FILE ]; then
|
||||||
USB_DRIVE=$(echo ${USB_DRIVE} | awk -F '/' '{print $3}' | sed 's|1||g' | sed 's|2||g')
|
USB_DRIVE=$(echo ${USB_DRIVE} | awk -F '/' '{print $3}' | sed 's|1||g' | sed 's|2||g')
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
# 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
|
fi
|
||||||
|
|
||||||
function any_key {
|
function any_key {
|
||||||
|
@ -76,6 +82,11 @@ function check_for_updates {
|
||||||
any_key
|
any_key
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function set_project_repo {
|
||||||
|
data=$(tempfile 2>/dev/null)
|
||||||
|
# TODO
|
||||||
|
}
|
||||||
|
|
||||||
function add_user {
|
function add_user {
|
||||||
data=$(tempfile 2>/dev/null)
|
data=$(tempfile 2>/dev/null)
|
||||||
trap "rm -f $data" 0 1 2 5 15
|
trap "rm -f $data" 0 1 2 5 15
|
||||||
|
|
Loading…
Reference in New Issue