Skip to content

Commit 95d56aa

Browse files
committed
Change lockfile paths in sync scripts
The scripts now use GVM_FEED_LOCK_PATH set by CMake and are configurable by setting the LOCK_PATH environment variable.
1 parent f6bc8a5 commit 95d56aa

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

tools/greenbone-certdata-sync.in

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,10 @@ SCRIPT_NAME="greenbone-certdata-sync"
6666
LOG_CMD="logger -t $SCRIPT_NAME"
6767

6868
# LOCK_FILE is the name of the file used to lock the feed during sync or update.
69-
LOCK_FILE=/tmp/gvm-sync-cert
70-
69+
if [ -z LOCK_FILE ]
70+
then
71+
LOCK_FILE="@GVM_FEED_LOCK_PATH@"
72+
fi
7173

7274
########## GLOBAL VARIABLES
7375
########## ================

tools/greenbone-scapdata-sync.in

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ SCRIPT_NAME="greenbone-scapdata-sync"
7070
LOG_CMD="logger -t $SCRIPT_NAME"
7171

7272
# LOCK_FILE is the name of the file used to lock the feed during sync or update.
73-
LOCK_FILE=/tmp/gvm-sync-scap
73+
if [ -z LOCK_FILE ]
74+
then
75+
LOCK_FILE="@GVM_FEED_LOCK_PATH@"
76+
fi
7477

7578

7679
########## GLOBAL VARIABLES

0 commit comments

Comments
 (0)