[PIE-1] Add initial svelte project #2

Merged
breadone merged 7 commits from PIE-1 into main 2025-08-12 12:27:42 +12:00
2 changed files with 5 additions and 3 deletions
Showing only changes of commit fde087d1ed - Show all commits

View File

@ -1,3 +1,4 @@
PB_ADMIN_EMAIL=admin@example.com
PB_ADMIN_PASSWORD=secret-password
PB_URL=http://pocketbase:8080
PB_URL=http://pocketbase:8080
PB_DATA_DIR=/pb/pb_data

View File

@ -12,8 +12,9 @@ set -e
# if there are no users yet, create the superuser
# we check the sqlite file for any existing record in the users table
if ! sqlite3 "/pb/pb_data/data.db" \
"SELECT id FROM users WHERE email='${PB_ADMIN_EMAIL}' LIMIT 1;" \
if [ ! -f "${PB_DATA_DIR}/pb_data.db" ] \
! sqlite3 "${PB_DATA_DIR}/data.db" \
"SELECT id FROM _superusers WHERE email='${PB_ADMIN_EMAIL}' LIMIT 1;" \
| grep -q .; then
echo ">>> Creating PocketBase superuser: ${PB_ADMIN_EMAIL}"