From 6840279ca9cf2757eca3261b7c1c1a5652037bb3 Mon Sep 17 00:00:00 2001 From: allan <allan@xfiles.dk> Date: Tue, 27 May 2025 10:18:08 +0200 Subject: [PATCH] minor changes --- giteainstall | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/giteainstall b/giteainstall index 84035ef..eb0ece3 100755 --- a/giteainstall +++ b/giteainstall @@ -81,12 +81,12 @@ done # # Check if input conditions are met # -inputcheck $hostname $giteapwd +inputcheck "$hostname" "$giteapwd" # # Download and install Gitea # -wget --no-verbose https://dl.gitea.com/gitea/$giteaversion/gitea-$giteaversion-linux-amd64 -mv gitea-$giteaversion-linux-amd64 /usr/local/bin/gitea ; chmod +x /usr/local/bin/gitea +wget --no-verbose https://dl.gitea.com/gitea/"$giteaversion"/gitea-"$giteaversion"-linux-amd64 +mv gitea-"$giteaversion"-linux-amd64 /usr/local/bin/gitea ; chmod +x /usr/local/bin/gitea # # Check if nginxsnippets exist if not download them # @@ -107,8 +107,8 @@ mysql < giteasql.sql # # Create a Gitea Nginx configuration file # -curl --silent https://git.x-files.dk/ubuntu-web-server/nginx-install/raw/branch/main/cfg-apps/gitea.80.conf > /etc/nginx/conf.d/$hostname.conf -sed -s -i "s/DOMAIN/$hostname/g" /etc/nginx/conf.d/$hostname.conf ; echo "$hostname" > $hostname.conf +curl --silent https://git.x-files.dk/ubuntu-web-server/nginx-install/raw/branch/main/cfg-apps/gitea.80.conf > /etc/nginx/conf.d/"$hostname".conf +sed -s -i "s/DOMAIN/$hostname/g" /etc/nginx/conf.d/"$hostname".conf ; echo "$hostname" > "$hostname".conf # # Restarting Nginx for changes to take effect systemctl restart nginx