updated readme for new options
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# 🚀 NGINX - Site Manager
|
# 🚀 NGINX - Site Manager
|
||||||
|
|
||||||
This script simplifies the process of managing NGINX sites by providing a command-line interface for common operations such as enabling/disabling, listing, and editing site configurations. This script was designed for Ubuntu. If you want to modify it to make it work for other flavors as well, feel free.
|
This script simplifies the process of managing NGINX sites by providing a command-line interface for common operations such as enabling/disabling, listing, editing, creating, and removing site configurations. This script was designed for Ubuntu. If you want to modify it to make it work for other flavors as well, feel free.
|
||||||
|
|
||||||
## 🛠️ Usage
|
## 🛠️ Usage
|
||||||
|
|
||||||
@@ -14,13 +14,17 @@ This script simplifies the process of managing NGINX sites by providing a comman
|
|||||||
- `-d, --disable`: Disable a site by disabling its configuration file.
|
- `-d, --disable`: Disable a site by disabling its configuration file.
|
||||||
- `-l, --list`: List all available sites and their status.
|
- `-l, --list`: List all available sites and their status.
|
||||||
- `-ed, --edit`: Edit the configuration file of a site.
|
- `-ed, --edit`: Edit the configuration file of a site.
|
||||||
|
- `-c, --create`: Create a new configuration file for a site.
|
||||||
|
- `-r, --remove`: Remove a site's configuration file.
|
||||||
|
|
||||||
## 📖 Examples
|
## 📖 Examples
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
./nginx-sm.sh --enable example.com # Enable the site example.com
|
./nginx-sm.sh --enable example.com # Enable the site example.com
|
||||||
./nginx-sm.sh --list # List all available sites
|
./nginx-sm.sh --list # List all available sites
|
||||||
./nginx-sm.sh --edit example.com # Edit the configuration of example.com
|
./nginx-sm.sh --edit example.com # Edit the configuration of example.com
|
||||||
|
./nginx-sm.sh --create example.com # Create a new configuration for example.com
|
||||||
|
./nginx-sm.sh --remove example.com # Remove the configuration for example.com
|
||||||
```
|
```
|
||||||
|
|
||||||
## 📚 Dependencies
|
## 📚 Dependencies
|
||||||
|
|||||||
Reference in New Issue
Block a user