commit 22a513471f319e3c090e06c336b5516e171b4cd3
parent 8b1933ddfef315a55cf0c6419e3a750c6c7f5b0c
Author: Henry Unite <unitehenry@gmail.com>
Date: Sat, 25 Jul 2026 07:25:26 +0000
feat: wizard
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/install.yml b/.github/workflows/install.yml
@@ -12,4 +12,4 @@ jobs:
- name: Run install script
run: |
curl -sSL https://raw.githubusercontent.com/unitehenry/amish/master/install.sh -o /tmp/install.sh
- sudo bash /tmp/install.sh
+ sudo WIZARD=0 bash /tmp/install.sh
diff --git a/install.sh b/install.sh
@@ -83,7 +83,7 @@ docker run -d --pull=never \
# Install nginx
sudo apt-get install -y nginx
-read -rp "Enter server name for nginx (e.g. example.com): " SERVER_NAME
+if [ "${WIZARD}" = "0" ]; then SERVER_NAME="example.com"; else read -rp "Enter server name for nginx (e.g. example.com): " SERVER_NAME; fi
curl https://raw.githubusercontent.com/unitehenry/amish/refs/heads/master/nginx/nginx.conf -o /etc/nginx/nginx.conf
sed -i "s/__SERVER_NAME__/${SERVER_NAME}/g" /etc/nginx/nginx.conf