summaryrefslogtreecommitdiff
path: root/db-init
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-04-17 01:56:43 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-04-17 01:56:43 -0400
commitff2983c207e6ab2a9381e20312355c42307187f6 (patch)
treeba4a2aca77c4f0b9963dab8754e5b1d58f711a88 /db-init
parent6ad57ac9f185dcfd4e02174ffdaff9bca1b0516c (diff)
Give things more consistent names
Diffstat (limited to 'db-init')
-rwxr-xr-xdb-init8
1 files changed, 8 insertions, 0 deletions
diff --git a/db-init b/db-init
new file mode 100755
index 0000000..8da2455
--- /dev/null
+++ b/db-init
@@ -0,0 +1,8 @@
+#!/bin/bash
+# Creates the repo structure defined in config
+
+source "$(dirname "$(readlink -e "$0")")/config"
+
+mkdir -p -- "${FTP_BASE}"/{"${PKGPOOL}","${SRCPOOL}"} "${CLEANUP_DESTDIR}" "${SOURCE_CLEANUP_DESTDIR}" "${STAGING}"
+
+"$(dirname "$(readlink -e "$0")")/create-repo" "${PKGREPOS[@]}"