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:
parent
7aaaf35e4e
commit
d06d092a9b
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue