Skip to content

Commit

Permalink
Fixes #1080. Updates paths in supervisor files to new dirs.
Browse files Browse the repository at this point in the history
  • Loading branch information
lwrubel authored Jul 16, 2021
1 parent 7bd00f0 commit 801b6bd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docker/stream-harvester/invoke.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ sh /opt/sfm-setup/setup_reqs.sh
echo "Waiting for dependencies"
appdeps.py --wait-secs 60 --port-wait ${SFM_RABBITMQ_HOST}:${SFM_RABBITMQ_PORT} --file-wait /sfm-collection-set-data/collection_set --file-wait /sfm-containers-data/containers

# if filter streams were running under supervisor in 2.3 or earlier, replace old sfm-data paths with 2.4+ paths
if [ "$(ls -A /etc/supervisor/conf.d)" ]
then
sed -i.bak 's/sfm-data/sfm-containers-data/' /etc/supervisor/conf.d/*.conf
sed -i.bak 's/sfm-data/sfm-collection-set-data/' /etc/supervisor/conf.d/*.json
fi

echo "Starting supervisor"
supervisord -c /etc/supervisor/supervisord.conf

Expand Down

0 comments on commit 801b6bd

Please sign in to comment.