From f9b879a5578c22cccfe24cf86b64039ae3fa9699 Mon Sep 17 00:00:00 2001 From: Peter Balcirak Date: Tue, 15 Jun 2021 10:39:43 +0200 Subject: [PATCH] k5login_root dest_file configurable - Add possibility to change destination file (default is /root/.k5login) --- slave/process-k5login-root/bin/process-k5login_root.sh | 4 +++- slave/process-k5login-root/changelog | 7 +++++++ .../conf/example-pre_01_alternative_k5login_destination | 3 +++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 slave/process-k5login-root/conf/example-pre_01_alternative_k5login_destination diff --git a/slave/process-k5login-root/bin/process-k5login_root.sh b/slave/process-k5login-root/bin/process-k5login_root.sh index 04a812a5..134ce722 100755 --- a/slave/process-k5login-root/bin/process-k5login_root.sh +++ b/slave/process-k5login-root/bin/process-k5login_root.sh @@ -4,7 +4,9 @@ PROTOCOL_VERSION='3.0.0' function process { - DST_FILE="/root/.k5login" + if [ -z "$DST_FILE" ]; then + DST_FILE="/root/.k5login" + fi ### Status codes I_CHANGED=(0 "${DST_FILE} updated") diff --git a/slave/process-k5login-root/changelog b/slave/process-k5login-root/changelog index 1fc0dee9..be435656 100644 --- a/slave/process-k5login-root/changelog +++ b/slave/process-k5login-root/changelog @@ -1,3 +1,10 @@ +perun-slave-process-k5login-root (3.1.5) stable; urgency=low + + * Add possibility to change destination file (default is /root/.k5login). + It may be set in a pre-script as a variable DST_FILE + + -- Peter Balcirak Tue, 15 Jun 2021 10:32:00 +0200 + perun-slave-process-k5login-root (3.1.4) stable; urgency=medium * Changed architecture to all diff --git a/slave/process-k5login-root/conf/example-pre_01_alternative_k5login_destination b/slave/process-k5login-root/conf/example-pre_01_alternative_k5login_destination new file mode 100644 index 00000000..c01a1976 --- /dev/null +++ b/slave/process-k5login-root/conf/example-pre_01_alternative_k5login_destination @@ -0,0 +1,3 @@ +#!/bin/bash + +#export DST_FILE="/root/.k5login"