diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..61258f4 --- /dev/null +++ b/install.sh @@ -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."