minor changes

This commit is contained in:
allan 2025-05-27 10:18:08 +02:00
parent 2d689c65bd
commit 6840279ca9

View File

@ -81,12 +81,12 @@ done
# #
# Check if input conditions are met # Check if input conditions are met
# #
inputcheck $hostname $giteapwd inputcheck "$hostname" "$giteapwd"
# #
# Download and install Gitea # Download and install Gitea
# #
wget --no-verbose https://dl.gitea.com/gitea/$giteaversion/gitea-$giteaversion-linux-amd64 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 mv gitea-"$giteaversion"-linux-amd64 /usr/local/bin/gitea ; chmod +x /usr/local/bin/gitea
# #
# Check if nginxsnippets exist if not download them # Check if nginxsnippets exist if not download them
# #
@ -107,8 +107,8 @@ mysql < giteasql.sql
# #
# Create a Gitea Nginx configuration file # 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 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 sed -s -i "s/DOMAIN/$hostname/g" /etc/nginx/conf.d/"$hostname".conf ; echo "$hostname" > "$hostname".conf
# #
# Restarting Nginx for changes to take effect # Restarting Nginx for changes to take effect
systemctl restart nginx systemctl restart nginx