Add install.sh

This commit is contained in:
colin 2024-06-29 15:47:33 +00:00
parent eeb4f6156d
commit f6404aebb3
1 changed files with 17 additions and 0 deletions

17
install.sh Normal file
View File

@ -0,0 +1,17 @@
#!/bin/bash
# Define plugin URL and target directory
PLUGIN_URL="https://git.nixc.us/colin/SimpleStatus/raw/branch/main/simple-status.php"
PLUGIN_DIR="./wp-content/plugins/simple-status"
# Create plugin directory if it doesn't exist
mkdir -p "$PLUGIN_DIR"
# Download the plugin
curl -o "$PLUGIN_DIR/simple-status.php" "$PLUGIN_URL"
# Set correct permissions
chmod 644 "$PLUGIN_DIR/simple-status.php"
# Inform user
echo "Simple Status plugin installed/updated successfully."