Files
RSync-Studio/Scripts/verify-stage5-server.sh
T
2026-09-09 08:23:43 +01:00

13 lines
776 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
LS="$ROOT/rsync-studio-licensing"
find "$LS/app" "$LS/config" "$LS/database" "$LS/routes" -name '*.php' -print0 | while IFS= read -r -d '' f; do php -l "$f" >/dev/null; done
grep -q "implements MustVerifyEmail" "$LS/app/Models/User.php"
grep -q "AdminOnly::class" "$LS/routes/web.stage5.php"
grep -q "middleware(\['auth','verified'\])" "$LS/routes/web.stage5.php"
grep -q "api: __DIR__.'/../routes/api.php'" "$LS/bootstrap/app.php"
grep -q "RsyncStudioLicensingServiceProvider::class" "$LS/bootstrap/providers.php"
grep -q "create_rsync_studio_auth_tables" <(find "$LS/database/migrations" -maxdepth 1 -type f -printf '%f\n')
echo 'Stage 5 integrated licensing portal static verification passed.'