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

Fix variables scope

This commit is contained in:
Jimmy Monin 2022-07-10 11:17:26 +02:00
parent 7aaaf35e4e
commit d06d092a9b

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