mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Create setup_demo.sh
This commit is contained in:
parent
813fdf2746
commit
3133ae7db9
33
demo/2087/setup_demo.sh
Normal file
33
demo/2087/setup_demo.sh
Normal 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..."
|
||||
|
Loading…
Reference in New Issue
Block a user