summaryrefslogtreecommitdiffstats
path: root/gitolite
diff options
context:
space:
mode:
Diffstat (limited to 'gitolite')
-rwxr-xr-xgitolite/initialize.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/gitolite/initialize.sh b/gitolite/initialize.sh
index 6806acd..10aa4f0 100755
--- a/gitolite/initialize.sh
+++ b/gitolite/initialize.sh
@@ -8,9 +8,13 @@ echo -e "This will erase data in the gitolite repository volume!"
echo -e "One SSH pubkey will be used as the initial administrator of the new install."
echo -e "\nKey selected: $1"
cat "/tmp/$1"
-echo -e "\nPress Enter/Return to continue..."
+echo -ne "\nEnter 'YES' to continue: "
read -r confirm
+if [ "$confirm" != "YES" ]; then
+ echo "ABORTING!"
+ exit 0
+fi
rm -rf /git/.gitolite /git/repositories/*
su git -c "gitolite setup -pk /tmp/$1"