Working version of cloner, basic setup of git and so on

This commit is contained in:
2018-02-08 15:09:47 +01:00
parent 0712ca5d16
commit aa601dc1fa
7 changed files with 109 additions and 2 deletions

12
checker/cloner-lib-cfg Normal file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
# 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