summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortejr <tejr@sqt.wtf>2021-01-23 13:56:18 +1300
committertejr <tejr@sqt.wtf>2021-01-23 13:56:18 +1300
commit56e07fefd3b51e1a18f8e0a9cc3e63ae722db54a (patch)
tree70178dd951458277e61408a54c2e33e53b465972
parentMerge branch 'leonardus' (diff)
downloadsoundboard-56e07fefd3b51e1a18f8e0a9cc3e63ae722db54a.tar.gz
soundboard-56e07fefd3b51e1a18f8e0a9cc3e63ae722db54a.zip
Add Lua environment variables to sample
This won't be exactly what anyone else running it will get, but it will at least demonstrate that these variables are likely required. Got them from `luarocks path` in this case.
-rw-r--r--soundboard.service3
1 files changed, 3 insertions, 0 deletions
diff --git a/soundboard.service b/soundboard.service
index 8c81e1e..d62475c 100644
--- a/soundboard.service
+++ b/soundboard.service
@@ -4,6 +4,9 @@ Description=Soundboard server
[Service]
RuntimeDirectory=%p
PermissionsStartOnly=true
+Environment=LUA_PATH=/var/lib/soundboard/.luarocks/share/lua/5.1/?.lua;/var/lib/soundboard/.luarocks/share/lua/5.1/?/init.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua;./?.lua;/usr/local/lib/lua/5.1/?.lua;/usr/local/lib/lua/5.1/?/init.lua;/usr/share/lua/5.1/?.lua;/usr/share/lua/5.1/?/init.lua
+Environment=LUA_CPATH=/var/lib/soundboard/.luarocks/lib/lua/5.1/?.so;/usr/local/lib/lua/5.1/?.so;./?.so;/usr/lib/x86_64-linux-gnu/lua/5.1/?.so;/usr/lib/lua/5.1/?.so;/usr/local/lib/lua/5.1/loadall.so
+WorkingDirectory=/var/lib/soundboard
ExecStartPre=/bin/cp /etc/letsencrypt/live/soundboard.sqt.wtf/fullchain.pem /etc/letsencrypt/live/soundboard.sqt.wtf/privkey.pem %t/%p
ExecStartPre=/bin/chown soundboard.soundboard %t/%p/fullchain.pem %t/%p/privkey.pem
ExecStart=/usr/local/soundboard/bin/soundboard