From 9d2e873cea7e58bc70d1fd93c8b64d9a0d3198d1 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Tue, 18 Feb 2020 13:15:29 +0100 Subject: [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. --- core/modules/slx-issue/data/opt/openslx/scripts/openslx-create_issue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-55-g7522