From c0df2c302f2647573f83be5d5ef13e8df3c67eb3 Mon Sep 17 00:00:00 2001 From: jvyden Date: Sat, 11 Jun 2022 19:03:04 -0400 Subject: [PATCH] [skip ci] Add bangs to scripts, add update script --- scripts-and-tools/build.sh | 1 + scripts-and-tools/start.sh | 1 + scripts-and-tools/update.sh | 12 ++++++++++++ 3 files changed, 14 insertions(+) create mode 100644 scripts-and-tools/update.sh diff --git a/scripts-and-tools/build.sh b/scripts-and-tools/build.sh index 8be9cefb..022c2aa6 100644 --- a/scripts-and-tools/build.sh +++ b/scripts-and-tools/build.sh @@ -1,3 +1,4 @@ +#!/bin/sh # Build script for production # # No arguments diff --git a/scripts-and-tools/start.sh b/scripts-and-tools/start.sh index 10d2803a..b238211a 100644 --- a/scripts-and-tools/start.sh +++ b/scripts-and-tools/start.sh @@ -1,3 +1,4 @@ +#!/bin/sh # Startup script for production # # $1: Server to start; case sensitive!!!!! diff --git a/scripts-and-tools/update.sh b/scripts-and-tools/update.sh new file mode 100644 index 00000000..f0185362 --- /dev/null +++ b/scripts-and-tools/update.sh @@ -0,0 +1,12 @@ +#!/bin/sh +# Update script for production +# +# No arguments +# Called manually + +sudo systemctl stop project-lighthouse* + +cd /srv/lighthouse || return +sudo -u lighthouse -i /srv/lighthouse/build.sh + +sudo systemctl start project-lighthouse* \ No newline at end of file