From f32346b331e633ae031859fbea515bfe279fa7de Mon Sep 17 00:00:00 2001 From: Digital Studium Date: Sat, 25 Mar 2023 14:49:36 +0000 Subject: [PATCH] Fix setup nginx script --- prepare.sh | 2 +- setup_nginx.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/prepare.sh b/prepare.sh index 9415d97..936e12a 100755 --- a/prepare.sh +++ b/prepare.sh @@ -4,7 +4,7 @@ sudo apt update sudo apt install -y nginx-light certbot python3-certbot-nginx docker.io -# Add current user to `docker` group and switch to this group +# Add current user to docker group and switch to this group sudo usermod -a -G docker $USER newgrp docker diff --git a/setup_nginx.sh b/setup_nginx.sh index 467f113..aadb0ad 100755 --- a/setup_nginx.sh +++ b/setup_nginx.sh @@ -3,8 +3,8 @@ source .env # Copy config to nginx, substitute and reload it -sudo cp git.conf /etc/nginx/conf.d -sudo sed -i s/GITEA_HOSTNAME/$GITEA_HOSTNAME/g +sudo cp git.conf /etc/nginx/conf.d/ +sudo sed -i s/GITEA_HOSTNAME/$GITEA_HOSTNAME/g /etc/nginx/conf.d/git.conf sudo service nginx reload # Get ssl certificate