From ae33fe3f53525f7b42de73c05d622f4c2b1690c2 Mon Sep 17 00:00:00 2001 From: SimpleTest Date: Sat, 18 Jul 2026 19:30:58 +0300 Subject: [PATCH] chore: add staging domain installer --- deploy/nginx/install-whoneedhelp.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 deploy/nginx/install-whoneedhelp.sh diff --git a/deploy/nginx/install-whoneedhelp.sh b/deploy/nginx/install-whoneedhelp.sh new file mode 100755 index 0000000..5221b05 --- /dev/null +++ b/deploy/nginx/install-whoneedhelp.sh @@ -0,0 +1,18 @@ +#!/bin/sh +set -eu + +sudo install -o root -g root -m 0644 \ + /home/simple/whoneedhelp.imalto.site.conf \ + /etc/nginx/sites-available/whoneedhelp.imalto.site + +if [ ! -L /etc/nginx/sites-enabled/whoneedhelp.imalto.site ]; then + sudo ln -s \ + /etc/nginx/sites-available/whoneedhelp.imalto.site \ + /etc/nginx/sites-enabled/whoneedhelp.imalto.site +fi + +sudo nginx -t +sudo systemctl reload nginx +sudo certbot --nginx --redirect -d whoneedhelp.imalto.site +sudo nginx -t +sudo systemctl reload nginx