dsql-admin/dsql-app/docker/docker-entrypoint.sh
Benjamin Toby 35fec57590 Updates
2025-01-28 19:43:16 +01:00

22 lines
394 B
Bash
Executable File

#!/bin/bash
FIRST_BUILD_FILE="/root/datasquirel/datasquirel-production/FIRST_BUILD"
chown -R mysql:mysql /var/lib/mysql
/usr/bin/mariadbd-safe &
sleep 2
if [ -e "$FIRST_BUILD_FILE" ]; then
cd /root/datasquirel/datasquirel-production
nodecid
exit
fi
cd /root/datasquirel/datasquirel-production
bun install
bun run build
echo "$(date +"%Y-%m-%d_%H-%M-%S")" >FIRST_BUILD
nodecid