This commit is contained in:
2025-10-30 10:14:57 +01:00
parent bbd9213afd
commit bae14bb420

View File

@@ -180,7 +180,7 @@ esac
# #
cp "$nginxsnippets/hostfiles/gitea-multi.80.conf" /etc/nginx/conf.d/"$hostname".conf cp "$nginxsnippets/hostfiles/gitea-multi.80.conf" /etc/nginx/conf.d/"$hostname".conf
sed -i -- "s/DOMAIN/$hostname/g" /etc/nginx/conf.d/"$hostname".conf sed -i -- "s/DOMAIN/$hostname/g" /etc/nginx/conf.d/"$hostname".conf
sed -i "s/GITEAPORT/3000/g" /etc/nginx/conf.d/"$hostname".conf sed -i "s/GITEAPORT/$giteaport/g" /etc/nginx/conf.d/"$hostname".conf
systemctl restart nginx systemctl restart nginx
# #
@@ -302,8 +302,15 @@ The HTTP port and more will be automatically adjusted during the postinstall ste
EOF EOF
) )
#
# Print notice
#
printf '%s\n' "$postnotice" printf '%s\n' "$postnotice"
printf "Postinstall script saved at: /etc/%s/gitea-postinstall\n" "$giteauser" printf "Postinstall script saved at: /etc/%s/gitea-postinstall\n" "$giteauser"
#
# All done
#
printf "\nAll Done...\n" printf "\nAll Done...\n"
# #