diff options
Diffstat (limited to 'community/eturnal/1-eturnalctl.patch')
-rw-r--r-- | community/eturnal/1-eturnalctl.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/community/eturnal/1-eturnalctl.patch b/community/eturnal/1-eturnalctl.patch new file mode 100644 index 00000000000..619b00d39bb --- /dev/null +++ b/community/eturnal/1-eturnalctl.patch @@ -0,0 +1,31 @@ +diff --git a/overlay/eturnalctl b/overlay/eturnalctl +index 01fcac3..9895efe 100755 +--- a/overlay/eturnalctl ++++ b/overlay/eturnalctl +@@ -32,6 +32,15 @@ config_file="${etc_dir:-/etc}/eturnalctl.cfg" + + # END OF CONFIGURATION SECTION. + ++if [ -z "${LOGS_DIRECTORY+x}" ] ++then ++ export LOGS_DIRECTORY='/var/log/eturnal' ++fi ++if [ -z "${RUNTIME_DIRECTORY+x}" ] ++then ++ export RUNTIME_DIRECTORY='/run/eturnal' ++fi ++ + unsupported='credentials + upgrade + downgrade +@@ -154,6 +163,10 @@ then + elif [ "$(id -u)" = '0' ] + then + cd '/' ++ if ! [ -d "$RUNTIME_DIRECTORY" ] ++ then ++ install -d -m 755 -o "$user" -g "$user" "$RUNTIME_DIRECTORY" ++ fi + arg="$(printf '%s' "$*" | sed 's/[^[:alnum:][:space:]]/\\&/g')" + case $(uname -s) in + Linux|OpenBSD) |