44 lines
498 B
Bash
Executable File
44 lines
498 B
Bash
Executable File
#!/bin/bash
|
|
|
|
. /usr/bin/dev-mkconfig
|
|
|
|
. $configFile
|
|
|
|
while getopts ":c:" option
|
|
do
|
|
case $option in
|
|
c)
|
|
codename=$OPTARG
|
|
;;
|
|
esac
|
|
done
|
|
|
|
OPTIND=1
|
|
|
|
# Setting default values for undefined variables.
|
|
|
|
if [ -z "$sshHost" ]
|
|
then
|
|
sshHost=localhost
|
|
fi
|
|
if [ -z "$sshUser" ]
|
|
then
|
|
sshUser=$USER
|
|
fi
|
|
if [ -z "$sshKeyFile" ]
|
|
then
|
|
sshKeyFile=$HOME/.ssh/id_rsa
|
|
fi
|
|
if [ -z "$repoDir" ]
|
|
then
|
|
repoDir=/var/cache/reprepro
|
|
fi
|
|
if [ -z "$codename" ]
|
|
then
|
|
codename=testing
|
|
fi
|
|
if [ -z "$keep" ]
|
|
then
|
|
keep=0
|
|
fi
|