Skip to content

Commit

Permalink
Update dotnetaspwebapi-install.sh
Browse files Browse the repository at this point in the history
Changed the service name to a static one
  • Loading branch information
kris701 authored Jan 16, 2025
1 parent 5423247 commit c693ca3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install/dotnetaspwebapi-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c693ca3

Please sign in to comment.