add no litestream option

This commit is contained in:
2021-09-17 12:02:10 -04:00
parent fd4a05207f
commit 59a7942adc

View File

@@ -29,7 +29,7 @@ if [ "$NOMAD_TASK_NAME" == "init" ]; then
rm -rf /config/database.sqlite
if [[ -f /local/litestream.yml ]]; then
echo "LITESTREAM DETECTED"
echo "Starting DB Restore"
if /usr/local/bin/litestream restore -config /local/litestream.yml /config/${DB_NAME}; then
echo "Restore of ${DB_NAME} Succeeded: "