aboutsummaryrefslogtreecommitdiffstats
path: root/del_repo.sh
diff options
context:
space:
mode:
Diffstat (limited to 'del_repo.sh')
-rwxr-xr-xdel_repo.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/del_repo.sh b/del_repo.sh
new file mode 100755
index 0000000..efd3421
--- /dev/null
+++ b/del_repo.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+echo -n "Input repo name to delete (excluding the .git suffix): "
+read repo
+
+rm -fvr /srv/git/$repo.git
+rm -fvr ~/$repo*
+rm -fv /srv/www/repositories/$repo*
+
+bash /srv/www/git-scripts/restart_ui.sh