From f6404aebb37d603c8e649b6efb0f546cc21d4e09 Mon Sep 17 00:00:00 2001 From: colin Date: Sat, 29 Jun 2024 15:47:33 +0000 Subject: [PATCH] Add install.sh --- install.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 install.sh 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."