redeclipse-conf

configuration and runit scripts for RedEclipse 1.6 (template)
git clone git://deadbeef.fr/redeclipse-conf.git
Log | Files | Refs | README

commit cedb6db6417506379a0157d8577b99230cb2a4a2
parent d3f833c2b222167ae7f3527442437f1b41b8e96d
Author: Morel BĂ©renger <berengermorel76@gmail.com>
Date:   Sat, 18 Jul 2020 16:02:40 +0200

fix paths in runit scripts

Diffstat:
Mrunit/log/run | 2+-
Mrunit/run | 6++++--
2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/runit/log/run b/runit/log/run @@ -1,5 +1,5 @@ #!/bin/sh -BASE_DIR="/var/log/bluenebula/$(basename $(dirname $(pwd)))" +BASE_DIR="/var/log/bluenebula/$(basename $(dirname $(dirname $(pwd))))" mkdir -p "${BASE_DIR}" exec svlogd -tt "${BASE_DIR}" diff --git a/runit/run b/runit/run @@ -3,6 +3,8 @@ set -xe exec 2>&1 -NAME="$(basename $(pwd))" +REAL_PWD="$(pwd)" +NAME="$(basename $(dirname $(pwd)))" -exec chpst -b "$NAME" /usr/games/redeclipse-server -h$(pwd)/cfg +cd /usr/lib/games/redeclipse +exec chpst -b "$NAME" ./redeclipse-server -h"$(REAL_PWD)"/cfg