summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2020-02-18 13:15:29 +0100
committerJonathan Bauer2020-02-18 13:15:29 +0100
commit9d2e873cea7e58bc70d1fd93c8b64d9a0d3198d1 (patch)
treef30ab30fa1c33a0126992fab25d6a32d194e2339
parent[slx-issue] add missing quotes (diff)
downloadmltk-9d2e873cea7e58bc70d1fd93c8b64d9a0d3198d1.tar.gz
mltk-9d2e873cea7e58bc70d1fd93c8b64d9a0d3198d1.tar.xz
mltk-9d2e873cea7e58bc70d1fd93c8b64d9a0d3198d1.zip
[slx-issue] use /run/openslx as temp dir.
There was an issue were systemd-tmpfiles-setup.service would clean /tmp while the issue was generated, thus sometimes loosing the header from /opt/openslx/etc/issue.template. The change to /run/openslx makes sure this can no longer happen.
-rwxr-xr-xcore/modules/slx-issue/data/opt/openslx/scripts/openslx-create_issue3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/modules/slx-issue/data/opt/openslx/scripts/openslx-create_issue b/core/modules/slx-issue/data/opt/openslx/scripts/openslx-create_issue
index 12a40048..f0c87d69 100755
--- a/core/modules/slx-issue/data/opt/openslx/scripts/openslx-create_issue
+++ b/core/modules/slx-issue/data/opt/openslx/scripts/openslx-create_issue
@@ -21,8 +21,9 @@ export PATH="$PATH:/opt/openslx/bin:/opt/openslx/sbin"
# Set greeting and add information about the booted system
+mkdir -p /run/openslx
declare -rg INFILE=/opt/openslx/etc/issue.template
-declare -rg TMPFILE=$(mktemp)
+declare -rg TMPFILE=$(mktemp -p /run/openslx)
declare -rg OUTFILE=/etc/issue
. /opt/openslx/config