diff options
author | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-06-13 15:33:16 -0300 |
---|---|---|
committer | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-06-13 15:33:16 -0300 |
commit | 8a874d242c8d86059261c098dfec1b0b1ac9e444 (patch) | |
tree | d61e14876143e6a50aeb0b57a2e1a30cc4101c95 | |
parent | af00a528573bb210260e20a0fa27a0a0a393244a (diff) |
mkrepo is script to create [repos]
-rwxr-xr-x | mkrepo | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -0,0 +1,24 @@ +#!/bin/bash +# Author: Nicolás Reynolds <fauno@kiwwwi.com.ar> +# License: GPLv3+ +# Description: A script to quickly create new [repos] + +source $(dirname $0)/config +source $(dirname $0)/local_config + +# TODO it would be simpler to expand arrays to {element1,element2,etc} +for repo in $@; do + + echo ":: Creating [$repo]" + mkdir -pv ${repodir}/{staging/,}${repo} + + for arch in ${ARCHES[@]}; do + mkdir -pv ${repodir}/${repo}/os/${arch} + done + +done + +echo ":: All done. Add the repo to the parabolaweb admin page" +echo " and the get_repos script on the same server." + +exit $? |