mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-07-18 19:43:02 +01:00
Tell user to run tgs-configure
This commit is contained in:
@@ -5,8 +5,10 @@ install:
|
||||
cp -r artifacts/* $(DESTDIR)/opt/tgstation-server
|
||||
mkdir -p $(DESTDIR)/etc/tgstation-server
|
||||
cp artifacts/appsettings.yml $(DESTDIR)/etc/tgstation-server/appsettings.ex.yml
|
||||
echo -e "# tgstation-server configration file\n" > $(DESTDIR)/etc/tgstation-server/appsettings.Production.yml
|
||||
echo -e "# tgstation-server configuration file\n# See /etc/tgstation-server/appsettings.ex.yml for details on individual configuration options" > $(DESTDIR)/etc/tgstation-server/appsettings.Production.yml
|
||||
dh_link $(DESTDIR)/etc/tgstation-server/appsettings.Production.yml $(DESTDIR)/opt/tgstation-server/appsettings.Production.yml
|
||||
mkdir -p $(DESTDIR)/usr/local/bin
|
||||
cp build/package/deb/tgs-configure $(DESTDIR)/usr/local/bin/
|
||||
|
||||
uninstall:
|
||||
mkdir -p $(DESTDIR)/opt/tgstation-server
|
||||
|
||||
@@ -1,7 +1,21 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh -e
|
||||
|
||||
pushd /opt/tgstation-server
|
||||
dotnet /opt/tgstation-server/lib/Default/Tgstation.Server.Host.dll General:SetupWizardMode=Only
|
||||
popd
|
||||
if [[ "$1" = "configure" ]]; then
|
||||
systemctl mask tgstation-server
|
||||
fi
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
if [[ "$1" = "configure" ]]; then
|
||||
echo " _ _ _ _ "
|
||||
echo " | |_ __ _ ___| |_ __ _| |_(_) ___ _ __ ___ ___ _ ____ _____ _ __ "
|
||||
echo " | __/ _` / __| __/ _` | __| |/ _ \| '_ \ _____/ __|/ _ \ '__\ \ / / _ \ '__|"
|
||||
echo " | || (_| \__ \ || (_| | |_| | (_) | | | |_____\__ \ __/ | \ V / __/ | "
|
||||
echo " \__\__, |___/\__\__,_|\__|_|\___/|_| |_| |___/\___|_| \_/ \___|_| "
|
||||
echo " |___/ "
|
||||
echo "tgstation-server is now installed but must first be configured"
|
||||
echo "Run 'sudo tgs-configure' to interactively configure your server"
|
||||
echo "Alternatively, edit '/etc/tgstation-server/appsettings.Production.yml' to your desired specifications"
|
||||
echo "Once complete, run 'sudo systemctl start tgstation-server' to start the service"
|
||||
echo "You should do this now to prevent the service from starting with invalid configuration on the next system reboot"
|
||||
fi
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh -e
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
pushd /opt/tgstation-server
|
||||
dotnet /opt/tgstation-server/lib/Default/Tgstation.Server.Host.dll General:SetupWizardMode=Only
|
||||
popd
|
||||
@@ -206,6 +206,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "deb", "deb", "{457A1F89-620
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
build\package\deb\build_package.sh = build\package\deb\build_package.sh
|
||||
build\package\deb\MakeInstall = build\package\deb\MakeInstall
|
||||
build\package\deb\tgs-configure = build\package\deb\tgs-configure
|
||||
build\package\deb\wrap_gpg.sh = build\package\deb\wrap_gpg.sh
|
||||
EndProjectSection
|
||||
EndProject
|
||||
|
||||
Reference in New Issue
Block a user