1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/netdata_ynh.git synced 2024-09-03 19:46:33 +02:00

Merge pull request #86 from YunoHost-Apps/testing

Fix variables scope
This commit is contained in:
JimboJoe 2022-07-10 19:36:00 +02:00 committed by GitHub
commit 185d3be65f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,6 +63,8 @@ netdata_add_yunohost_web_logs () {
fi
if [ -z "$(grep "YUNOHOST" $web_log_file)" ] ; then
echo "# ------------YUNOHOST DOMAINS---------------" >> $web_log_file
local domain
local domain_label
for domain in $(yunohost domain list --output-as plain); do
domain_label=${domain//\./_} # Replace "." by "_" for the domain label
cat >> $web_log_file <<EOF