Create setup_demo.sh

This commit is contained in:
Stefan Pejcic
2024-07-28 14:58:21 +02:00
committed by GitHub
parent 813fdf2746
commit 3133ae7db9

33
demo/2087/setup_demo.sh Normal file
View File

@@ -0,0 +1,33 @@
#!/bin/bash
# Parse command line options
while getopts "yf" opt; do
case $opt in
y)
confirm="yes"
;;
f)
confirm="force"
;;
*)
usage
;;
esac
done
# If no flags are set, ask for user confirmation
if [ -z "$confirm" ]; then
read -p "This will convert your website to host public OpenPanel demo. Do you want to proceed? (y/n) " user_input
case $user_input in
[Yy]*)
#echo "User confirmed to proceed."
;;
*)
exit 1
;;
esac
fi
echo "Setting demo..."