Tell user to run tgs-configure

This commit is contained in:
Jordan Dominion
2023-06-23 01:19:27 -04:00
parent be5e3fddb6
commit fd02144e40
5 changed files with 28 additions and 6 deletions
+3 -1
View File
@@ -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
+18 -4
View File
@@ -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 -1
View File
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh -e
#DEBHELPER#
+5
View File
@@ -0,0 +1,5 @@
#!/bin/sh
pushd /opt/tgstation-server
dotnet /opt/tgstation-server/lib/Default/Tgstation.Server.Host.dll General:SetupWizardMode=Only
popd
+1
View File
@@ -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