From 7dcdcc18a5d1d5fb169800c2bcade5d3a33588f9 Mon Sep 17 00:00:00 2001 From: doug Date: Wed, 4 Jan 2023 14:28:47 -0500 Subject: [PATCH] fix so-common references --- salt/common/tools/sbin/so-config-backup | 4 +++- salt/suricata/cron/so-suricata-eve-clean | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/salt/common/tools/sbin/so-config-backup b/salt/common/tools/sbin/so-config-backup index 42e86f3e7..ac46a73d8 100755 --- a/salt/common/tools/sbin/so-config-backup +++ b/salt/common/tools/sbin/so-config-backup @@ -13,7 +13,9 @@ # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program. If not, see .. /usr/sbin/so-common +# along with this program. If not, see . + +. /usr/sbin/so-common {% set BACKUPLOCATIONS = salt['pillar.get']('backup:locations', {}) %} TODAY=$(date '+%Y_%m_%d') diff --git a/salt/suricata/cron/so-suricata-eve-clean b/salt/suricata/cron/so-suricata-eve-clean index 6185e7c8e..b4bb96b5c 100644 --- a/salt/suricata/cron/so-suricata-eve-clean +++ b/salt/suricata/cron/so-suricata-eve-clean @@ -13,7 +13,9 @@ # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program. If not, see .. /usr/sbin/so-common +# along with this program. If not, see . + +. /usr/sbin/so-common APP=so-suricata-eve-clean lf=/tmp/$APP-pidLockFile