Allow custom repo name

Needed for testing the ci using a different repo name
pull/196/head
Jan Houben 8 years ago
parent 07f1962d07
commit 65117e4ce3
No known key found for this signature in database
GPG Key ID: 6866AADB974DD983
  1. 3
      conf.sh
  2. 2
      push.sh
  3. 4
      repo.sh

@ -16,9 +16,8 @@ zfs_initcpio_hook_hash="3eb874cf2cbb6c6a0e1c11a98af54f682d6225667af944b43435aeab
email="jeezusjr@gmail.com"
# Repository path and name
repo_name="archzfs"
repo_basename="archzfs"
repo_basepath="/repo"
repo_name_test="archzfs-testing"
# SSH login address (can use ssh config Hosts)
remote_login="webfaction"

@ -131,7 +131,7 @@ push_repo() {
elif [[ ${push_repo} -ne 1 ]]; then
return
fi
run_cmd "rsync -vrtlh --delete-before ${repo_basepath}/${repo_name} ${package_backup_dir} webfaction:/home/jalvarez/webapps/default/ ${dry}"
run_cmd "rsync -vrtlh --delete-before ${repo_basepath}/${repo_basename} ${package_backup_dir} webfaction:/home/jalvarez/webapps/default/ ${dry}"
run_cmd_check 1 "Could not push packages to webfaction!"
}

@ -73,9 +73,9 @@ fi
for (( a = 0; a < $#; a++ )); do
if [[ ${args[$a]} == "azfs" ]]; then
repo_name="archzfs"
repo_name=${repo_basename}
elif [[ ${args[$a]} == "test" ]]; then
repo_name="archzfs-testing"
repo_name="${repo_basename}-testing"
elif [[ ${args[$a]} =~ repo=(.*) ]]; then
repo_name=${BASH_REMATCH[1]}
elif [[ ${args[$a]} == "ccm" ]]; then

Loading…
Cancel
Save