mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 16:19:19 +02:00
add syntaqlite SQL validation to migrate.sh before applying schema.sql
This commit is contained in:
@@ -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 "--------------------------------------"
|
||||
|
||||
Reference in New Issue
Block a user