grapesjs/backend-docker/entrypoint.sh

10 lines
189 B
Bash
Raw Normal View History

2023-07-31 11:28:52 +00:00
#!/bin/sh
2023-08-01 15:26:50 +00:00
if [ ! -f db.json ] ; then
touch db.json
fi
if [ ! -s db.json ] ; then
echo '{"projects": [ {"id": 1, "data": {"assets": [], "styles": [], "pages": []} } ]}' > db.json
fi
2023-07-31 11:28:52 +00:00
"$@"