summaryrefslogtreecommitdiffstats
path: root/bin/reprepro_reset.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/reprepro_reset.sh')
-rwxr-xr-xbin/reprepro_reset.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/reprepro_reset.sh b/bin/reprepro_reset.sh
new file mode 100755
index 0000000..7ce6a79
--- /dev/null
+++ b/bin/reprepro_reset.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+set -e
+
+REPOSITORY="/srv/$(hostname -f)/packages"
+
+cd "${REPOSITORY}"
+
+if [ ! -e conf ]
+then
+ exit 0
+fi
+
+rm -rf db dists pool project