repo-cloner/old/checker/cloner-lib-cfg
Václav Valíček b536c883de
move old files to old directory
Signed-off-by: Václav Valíček <valicek1994@gmail.com>
2022-05-04 09:46:41 +02:00

12 lines
422 B
Plaintext

# library for work with config file
# check directories if they exist
[ -d $CONFIG_DIR ] || die "Config directory does not exist on volune - $CONFIG_DIR"
[ -f $CONFIG_DIR/cloner.cfg ] || die "Config file does not exist - create please cloner.cfg"
# load config files
source $CONFIG_DIR/cloner.cfg
# check if the url is specified
repo=${cloner_repo_url:-}
[ -z "$repo" ] && die "No repository url is specified" || true