summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@parabola.nu>2018-06-22 13:22:49 -0400
committerLuke Shumaker <lukeshu@parabola.nu>2018-08-20 19:53:44 -0400
commitcf3005fb1222d4ca0ddd28fc39464c886a02f62d (patch)
tree8a1ecab13a744724a922a4358800ccb811dfb987
parent5211fb1999a1accf9e858a3c205f542eadfeb332 (diff)
Add from Parabola: db-init
If you're seeing this in `git blame`, it chose to follow the wrong ancestor of a merge commit.
-rwxr-xr-xdb-init6
1 files changed, 6 insertions, 0 deletions
diff --git a/db-init b/db-init
new file mode 100755
index 0000000..e25dbff
--- /dev/null
+++ b/db-init
@@ -0,0 +1,6 @@
+#!/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}"