From 3ac9376ce8b35f079d6ac6be417b1a0564b6bf70 Mon Sep 17 00:00:00 2001 From: colin Date: Thu, 26 Sep 2024 13:48:26 -0400 Subject: [PATCH] Update install.sh --- install.sh | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/install.sh b/install.sh index 0ce2951..501df60 100644 --- a/install.sh +++ b/install.sh @@ -1,26 +1,17 @@ #!/bin/bash # Define plugin details -PLUGIN_URL="https://git.nixc.us/colin/SimpleTracking/raw/branch/main/simple-tracking.php" -PLUGIN_DIR="./wp-content/plugins/simple-tracking" +PLUGIN_URL="https://git.nixc.us/colin/SimpleRss/raw/branch/main/simplerss.php" +PLUGIN_DIR="./wp-content/plugins/simplerss" # Create plugin directory if it doesn't exist mkdir -p "$PLUGIN_DIR" # Download the plugin file -curl -o "$PLUGIN_DIR/simple-tracking.php" "$PLUGIN_URL" - -# Create a blank tracking-code.php file if it doesn't exist -if [ ! -f "$PLUGIN_DIR/tracking-code.php" ]; then - touch "$PLUGIN_DIR/tracking-code.php" - echo "Please add your tracking code to wp-content/plugins/simple-tracking/tracking-code.php." -else - echo "tracking-code.php already exists." -fi +curl -o "$PLUGIN_DIR/simplerss.php" "$PLUGIN_URL" # Set correct permissions -chmod 644 "$PLUGIN_DIR/simple-tracking.php" -chmod 644 "$PLUGIN_DIR/tracking-code.php" +chmod 644 "$PLUGIN_DIR/simplerss.php" # Inform user -echo "Simple Tracking plugin installed/updated successfully." +echo "SimpleRss plugin installed/updated successfully."