Skip to content

Commit

Permalink
Correctly handle missing DATABASE_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
thespad committed Jul 24, 2024
1 parent ce9c744 commit 818affe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion root/etc/s6-overlay/s6-rc.d/init-manyfold-config/run
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ elif [[ ${DB_SCHEME} = "mysql2" ]]; then
fi
done
else
DATABASE_URL=sqlite3:/config/manyfold.sqlite3
export DATABASE_URL=sqlite3:/config/manyfold.sqlite3
printf "sqlite3:/config/manyfold.sqlite3" > /run/s6/container_environment/DATABASE_URL
echo "**** Missing or invalid DATABASE_URL, defaulting to sqlite. ****"
fi

Expand Down

0 comments on commit 818affe

Please sign in to comment.