mirror of
https://github.com/YunoHost-Apps/netdata_ynh.git
synced 2024-09-03 19:46:33 +02:00
10 lines
396 B
Bash
10 lines
396 B
Bash
#!/bin/bash
|
|
|
|
# Retrieve arguments
|
|
domain=$1
|
|
|
|
# Look for the domain entry, and delete the related lines
|
|
# by deleting every line between:
|
|
# - the domain label (with "." replaced by "_")
|
|
# - and the domain file specification (need to replace "." by "\." in order not to get interpreted by sed)
|
|
sed --in-place "/${domain//\./_}_log/,/${domain//\./\\\.}/d" /opt/netdata/etc/netdata/go.d/web_log.conf
|