Use adduser --system to prevent the script from failing
All checks were successful
build-debian-package / Build the debian package (push) Successful in 3m4s
All checks were successful
build-debian-package / Build the debian package (push) Successful in 3m4s
This commit is contained in:
@@ -1 +1,2 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
adduser --system alumnihub
|
||||||
@@ -1,2 +1 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
useradd oqtane
|
|
||||||
@@ -2,14 +2,14 @@
|
|||||||
Description=Alumnihub Webservice
|
Description=Alumnihub Webservice
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
WorkingDirectory=/opt/oqtane
|
WorkingDirectory=/opt/alumnihub
|
||||||
ExecStart=/usr/bin/dotnet /opt/alumnihub/Oqtane.Server.dll
|
ExecStart=/usr/bin/dotnet /opt/alumnihub/Oqtane.Server.dll
|
||||||
Restart=always
|
Restart=always
|
||||||
# Restart service after 10 seconds if the dotnet service crashes:
|
# Restart service after 10 seconds if the dotnet service crashes:
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
KillSignal=SIGINT
|
KillSignal=SIGINT
|
||||||
SyslogIdentifier=alumnihub
|
SyslogIdentifier=alumnihub
|
||||||
User=oqtane
|
User=alumnihub
|
||||||
Environment=ASPNETCORE_ENVIRONMENT=Production
|
Environment=ASPNETCORE_ENVIRONMENT=Production
|
||||||
Environment=ASPNETCORE_URLS="http://127.0.0.1:5000"
|
Environment=ASPNETCORE_URLS="http://127.0.0.1:5000"
|
||||||
Environment=ASPNETCORE_FORWARDEDHEADERS_ENABLED=true
|
Environment=ASPNETCORE_FORWARDEDHEADERS_ENABLED=true
|
||||||
|
|||||||
Reference in New Issue
Block a user