Delete 'Modules/BackendToggle-Scripts/toggle-Netdata_NGINX.sh'
This commit is contained in:
@@ -1,29 +0,0 @@
|
|||||||
function usage {
|
|
||||||
echo "Usage: $0 [option...]" >&2
|
|
||||||
echo
|
|
||||||
echo " -e, Enable Netdata"
|
|
||||||
echo " -d, Disable Netdata"
|
|
||||||
echo
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if [ -n "$1" ]; then
|
|
||||||
|
|
||||||
if [ "$1" = "-d" ]; then
|
|
||||||
echo "Disable Netdata"
|
|
||||||
sed -i '/deny all; #enables\/disables Netdata/c\ deny all; #enables\/disables Netdata' /etc/nginx/sites-available/Backend
|
|
||||||
systemctl stop netdata
|
|
||||||
systemctl disable netdata > /dev/null 2>&1
|
|
||||||
systemctl reload nginx
|
|
||||||
elif [ "$1" = "-e" ]; then
|
|
||||||
echo "Enable Netdata"
|
|
||||||
sed -i '/deny all; #enables\/disables Netdata/c\ #deny all; #enables\/disables Netdata' /etc/nginx/sites-available/Backend
|
|
||||||
systemctl start netdata
|
|
||||||
systemctl enable netdata > /dev/null 2>&1
|
|
||||||
systemctl reload nginx
|
|
||||||
else
|
|
||||||
usage
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
usage
|
|
||||||
fi
|
|
||||||
Reference in New Issue
Block a user