File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -222,18 +222,18 @@ function fetch_and_execute_delegated_payload {
222
222
223
223
# only extract a valid archive
224
224
if tar -tzf " $DELEGATED_ARCHIVE_PATH " & > /dev/null; then
225
- TAR_MTIME_EPOCH=$( tar -tvzf " $DELEGATED_ARCHIVE_PATH " data/ delegated-entry.sh | awk ' {print $4, $5}' | xargs -I {} date -d {} +%s)
225
+ TAR_MTIME_EPOCH=$( tar -tvzf " $DELEGATED_ARCHIVE_PATH " delegated-entry.sh | awk ' {print $4, $5}' | xargs -I {} date -d {} +%s)
226
226
227
227
if [ -f $DELEGATED_ENTRY_PATH ]; then
228
228
FILE_MTIME_EPOCH=$( stat -c %Y " $DELEGATED_ENTRY_PATH " )
229
229
230
230
if [ " $TAR_MTIME_EPOCH " -gt " $FILE_MTIME_EPOCH " ]; then
231
- tar -xvzf " $DELEGATED_ARCHIVE_PATH " -C /
231
+ tar -xvzf " $DELEGATED_ARCHIVE_PATH " -C /data
232
232
else
233
233
echo " TAR archive is not newer, skipping extraction"
234
234
fi
235
235
else
236
- tar -xvzf " $DELEGATED_ARCHIVE_PATH " -C /
236
+ tar -xvzf " $DELEGATED_ARCHIVE_PATH " -C /data
237
237
fi
238
238
else
239
239
echo " Invalid TAR archive"
Original file line number Diff line number Diff line change @@ -61,11 +61,11 @@ file_client: local
61
61
#
62
62
file_roots:
63
63
base:
64
- - /opt /salt/state
64
+ - /data /salt/state
65
65
66
66
# The Salt pillar is searched for locally if file_client is set to local. If
67
67
# this is the case, and pillar data is defined, then the pillar_roots need to
68
68
# also be configured on the minion:
69
69
pillar_roots:
70
70
base:
71
- - /opt /salt/pillar
71
+ - /data /salt/pillar
You can’t perform that action at this time.
0 commit comments