Update dotnetaspwebapi-install.sh

Changed the service name to a static one
This commit is contained in:
Kristian Skov 2025-01-16 14:11:27 +01:00 committed by GitHub
parent 5423247af6
commit c693ca3608
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -79,7 +79,7 @@ systemctl reload nginx
msg_ok "Nginx Server Created"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/kestrel-$var_project_name.service
cat <<EOF >/etc/systemd/system/kestrel-aspnetapi.service
[Unit]
Description=.NET Web API App running on Linux
@ -98,7 +98,7 @@ Environment=DOTNET_NOLOGO=true
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now kestrel-$var_project_name.service
systemctl enable -q --now kestrel-aspnetapi.service
msg_ok "Created Service"
motd_ssh