#!/bin/bash echo "Creating HVAC Plugin Installer Package..." # Create the installer directory structure mkdir -p installer-package/plugin-backups # Copy the updated plugin zip cp plugin-backups/hvac-community-events-updated.zip installer-package/plugin-backups/ # Copy the installer script cp plugin-backups/complete-hvac-installer.php installer-package/ # Create a simple index.php file to access the installer cat > installer-package/index.php << 'EOF' HVAC Plugin Installer

HVAC Community Events Plugin Installer

Warning: This installer will: Only run this if you have administrator access.

Installation Options:

Run Complete Installation

Manual Steps:

  1. Download the plugin: Plugin ZIP
  2. Upload via WordPress admin → Plugins → Add New → Upload
  3. Activate the plugin
  4. Create test users manually

Test Credentials (will be created):

EOF # Create a README for manual installation cat > installer-package/README.md << 'EOF' # HVAC Plugin Installation Package ## Automatic Installation 1. Upload this entire folder to your staging server 2. Access `index.php` in your browser 3. Click "Run Complete Installation" ## Manual Installation 1. Download `plugin-backups/hvac-community-events-updated.zip` 2. Go to WordPress Admin → Plugins → Add New → Upload Plugin 3. Upload and activate the plugin 4. Create test users: - test_admin (administrator) - test_trainer (trainer role) ## Files Included - `complete-hvac-installer.php` - Automated installer script - `plugin-backups/hvac-community-events-updated.zip` - Updated plugin with Zoho fixes - `index.php` - Web interface for installation ## Test Credentials - Admin: test_admin / hvac_staging_2025 - Trainer: test_trainer / hvac_staging_2025 ## Post-Installation 1. Login to wp-admin with test_admin 2. Go to HVAC → Zoho CRM Settings 3. Test the connection to verify domain fixes EOF # Create the final package echo "Creating installer package archive..." cd installer-package zip -r ../hvac-installer-package.zip . cd .. echo "✓ Installer package created: hvac-installer-package.zip" echo "✓ Package contents:" ls -la installer-package/ echo "" echo "Deployment Instructions:" echo "1. Upload hvac-installer-package.zip to staging server" echo "2. Extract to web-accessible directory" echo "3. Access index.php in browser" echo "4. Follow installation instructions"