Skip to content

Commit

Permalink
v6.18
Browse files Browse the repository at this point in the history
+ DietPi-Software | Grafana: Preserve admin_password, if already set, e.g. on reinstall
  • Loading branch information
MichaIng authored Nov 20, 2018
1 parent b93f378 commit 822406a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dietpi/dietpi-software
Original file line number Diff line number Diff line change
Expand Up @@ -9749,7 +9749,7 @@ _EOF_
ln -sf $G_FP_DIETPI_USERDATA/grafana /var/lib/grafana

# - Set password, wrap into trippled double quotes in case of ; or # being contained, according to docs: http://docs.grafana.org/installation/configuration/#password
G_CONFIG_INJECT 'admin_password[[:blank:]]*=' "admin_password = \"\"\"$GLOBAL_PW\"\"\"" /etc/grafana/grafana.ini
GCI_PRESERVE=1 G_CONFIG_INJECT 'admin_password[[:blank:]]*=' "admin_password = \"\"\"$GLOBAL_PW\"\"\"" /etc/grafana/grafana.ini

fi

Expand Down

0 comments on commit 822406a

Please sign in to comment.