This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
#!/bin/bash | |
# Configuration files | |
CONFIG_FILE1="/etc/nginx/ugreen_redirect.conf" | |
CONFIG_FILE2="/etc/nginx/ugreen_ssl_redirect.conf" | |
# Search and replace patterns for ugreen_redirect.conf | |
SEARCH_LISTEN1="listen 80;" | |
REPLACE_LISTEN1="listen 8081;" |