1
0
Fork 0

Update README.md

This commit is contained in:
colin 2024-09-26 13:47:41 -04:00
parent 89a3371df6
commit 7aad00ded7
1 changed files with 10 additions and 11 deletions

View File

@ -1,11 +1,11 @@
# Simple Tracking Plugin Installation # SimpleRss Plugin Installation
## Installation ## Installation
To install or update the Simple Tracking plugin, run the following command from the root of your WordPress HTML directory: To install or update the SimpleRss plugin, run the following command from the root of your WordPress HTML directory:
```sh ```sh
curl -sSL https://git.nixc.us/colin/SimpleTracking/raw/branch/main/install.sh | bash curl -sSL https://git.nixc.us/colin/SimpleRss/raw/branch/main/install.sh | bash
``` ```
## Enabling the Plugin ## Enabling the Plugin
@ -14,21 +14,20 @@ After running the install script, you need to activate the plugin. You can do th
1. Log in to your WordPress admin dashboard. 1. Log in to your WordPress admin dashboard.
2. Navigate to `Plugins > Installed Plugins`. 2. Navigate to `Plugins > Installed Plugins`.
3. Find `Simple Tracking` in the list and click `Activate`. 3. Find `SimpleRss` in the list and click `Activate`.
Alternatively, you can activate the plugin using WP-CLI: Alternatively, you can activate the plugin using WP-CLI:
```sh ```sh
wp plugin activate simple-tracking --allow-root wp plugin activate simplerss --allow-root
``` ```
## What `install.sh` Does ## What `install.sh` Does
The `install.sh` script performs the following actions: The `install.sh` script performs the following actions:
1. Defines the URL for downloading the `simple-tracking.php` file. 1. Defines the URL for downloading the `simplerss.php` file.
2. Creates the target directory (`wp-content/plugins/simple-tracking`) if it doesn't exist. 2. Creates the target directory (`wp-content/plugins/simplerss`) if it doesn't exist.
3. Downloads the `simple-tracking.php` file into the target directory. 3. Downloads the `simplerss.php` file into the target directory.
4. Creates a blank `tracking-code.php` file if it doesn't already exist and instructs the user to add their tracking code to it. 4. Sets the correct permissions for the `simplerss.php` file.
5. Sets the correct permissions for the `simple-tracking.php` and `tracking-code.php` files. 5. Prints a message indicating that the SimpleRss plugin has been installed or updated successfully.
6. Prints a message indicating that the Simple Tracking plugin has been installed or updated successfully.