#!/bin/bash # Exit on error set -e # Source environment variables if [ -f ".env" ]; then source .env else echo "Error: .env file not found. Please create it with the required variables." exit 1 fi echo "===== Creating No-Cache Plugin for Authentication Pages =====" # Create mu-plugin to disable caching for login pages echo "Creating mu-plugin to disable cache for login and dashboard pages..." sshpass -p "$UPSKILL_STAGING_PASS" ssh -o StrictHostKeyChecking=no "$UPSKILL_STAGING_SSH_USER@$UPSKILL_STAGING_IP" "cd $UPSKILL_STAGING_PATH && mkdir -p wp-content/mu-plugins && cat > wp-content/mu-plugins/hvac-disable-auth-cache.php << 'EOF'