Skip to content
Snippets Groups Projects
Commit 7e1ce25d authored by Daniel Nemergut's avatar Daniel Nemergut Committed by Charlotte Hausman
Browse files

Checking old rawdata for contents before copying it in case the productfetcher failed previously

parent 0f6fcca4
No related branches found
No related tags found
1 merge request!1618update vlass templates for pimscache python3.10 upgrade
......@@ -11,7 +11,7 @@ cd {{spool_dir}}
$SBIN_PATH/framework.sh -d .
chmod 770 .
if [ ! -z "$PREV_SPOOL" ] && [ -d $PREV_SPOOL/rawdata/ ]; then
if [ ! -z "$PREV_SPOOL" ] && [ -d $PREV_SPOOL/rawdata/ ] && [ ! -z "$(ls -A $PREV_SPOOL/rawdata/)" ]; then
# Reuse the raw data from the previous version
mv $PREV_SPOOL/rawdata/ .
else
......
......@@ -11,7 +11,7 @@ cd {{spool_dir}}
$SBIN_PATH/framework.sh -d .
chmod 770 .
if [ ! -z "$PREV_SPOOL" ] && [ -d $PREV_SPOOL/rawdata/ ]; then
if [ ! -z "$PREV_SPOOL" ] && [ -d $PREV_SPOOL/rawdata/ ] && [ ! -z "$(ls -A $PREV_SPOOL/rawdata/)" ]; then
# Reuse the raw data from the previous version
mv $PREV_SPOOL/rawdata/ .
else
......
......@@ -11,7 +11,7 @@ cd {{spool_dir}}
$SBIN_PATH/framework.sh -d .
chmod 770 .
if [ ! -z "$PREV_SPOOL" ] && [ -d $PREV_SPOOL/rawdata/ ]; then
if [ ! -z "$PREV_SPOOL" ] && [ -d $PREV_SPOOL/rawdata/ ] && [ ! -z "$(ls -A $PREV_SPOOL/rawdata/)" ]; then
# Reuse the raw data from the previous version
mv $PREV_SPOOL/rawdata/ .
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment