diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-08-26 03:33:26 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-08-26 03:33:26 -0300 |
commit | 8eafe04ec5eaf917d9e2d58993604c454f1a26d1 (patch) | |
tree | c0e9bb91659c3a1f5814ba94ee251639b52c5873 /extra/coadde/mkrepo | |
parent | f17c9169de91036cd4b9bb725d2cc6713ad06ce5 (diff) |
re-estructure dbscrips
Diffstat (limited to 'extra/coadde/mkrepo')
-rwxr-xr-x | extra/coadde/mkrepo | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/extra/coadde/mkrepo b/extra/coadde/mkrepo new file mode 100755 index 0000000..b11dc0b --- /dev/null +++ b/extra/coadde/mkrepo @@ -0,0 +1,15 @@ +#!/bin/bash +# Author: Nicolás Reynolds <fauno@kiwwwi.com.ar> +# License: GPLv3+ +# Description: A script to quickly create new [repos] + +source "$(dirname "$(readlink -e "$0")")/config" + +for repo in "$@"; do + echo ":: Creating [$repo]" + for arch in "${ARCHES[@]}"; do + mkdir -pv "${FTP_BASE}/${repo}/os/${arch}" + done +done + +echo ":: All done. Add the repo to the ParabolaWeb admin page." |