Beginning of setting the project repo

This commit is contained in:
Bob Mottram 2016-01-25 17:56:44 +00:00
parent ca6d0269bc
commit 21ea7a8459
1 changed files with 11 additions and 0 deletions

View File

@ -47,6 +47,8 @@ MINIMUM_PASSWORD_LENGTH=8
VOIP_PORT=64738
VOIP_ONION_PORT=8095
PROJECT_REPO="https://github.com/bashrc/${PROJECT_NAME}"
USB_DRIVE=sdb
# get default USB from config file
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')
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
function any_key {
@ -76,6 +82,11 @@ function check_for_updates {
any_key
}
function set_project_repo {
data=$(tempfile 2>/dev/null)
# TODO
}
function add_user {
data=$(tempfile 2>/dev/null)
trap "rm -f $data" 0 1 2 5 15