add syntaqlite SQL validation to migrate.sh before applying schema.sql

This commit is contained in:
Pontoporeia
2026-05-11 16:01:44 +02:00
parent cb6394e119
commit 31ccbd195b
2 changed files with 29 additions and 0 deletions

View File

@@ -23,6 +23,22 @@ warn() { printf "${YELLOW}!${NC} %s\n" "$*"; }
printf "🚀 XAMXAM Production Deployment\n"
printf "================================\n\n"
# ── Step 0: System dependencies ───────────────────────────────────────────────
printf "📋 Step 0: Checking system dependencies...\n"
echo "--------------------------------------"
if ! php -m | grep -qi curl; then
apt-get install -y php-curl
ok "Installed php-curl"
else
ok "php-curl already installed"
fi
if ! command -v sqlite3 &>/dev/null; then
apt-get install -y sqlite3
ok "Installed sqlite3"
else
ok "sqlite3 already installed"
fi
# ── Step 1: Permissions ───────────────────────────────────────────────────────
printf "📋 Step 1: Fixing file permissions...\n"
echo "--------------------------------------"