diff options
author | Tobias K <6317548+theCalcaholic@users.noreply.github.com> | 2021-08-03 01:12:21 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2021-08-10 02:16:38 +0300 |
commit | fb102d233c3abeba508adf71de1c23a9b0cc0c15 (patch) | |
tree | e31dae5676e655836da88e1ed669e9402f8be41a | |
parent | e49203249b8842e3586c7893ab59fd1bf779da20 (diff) |
metrics.sh: Fix USER variable being ignoredv1.37.5
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
-rw-r--r-- | bin/ncp/SYSTEM/metrics.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ncp/SYSTEM/metrics.sh b/bin/ncp/SYSTEM/metrics.sh index bd13de28..6e2eb0c1 100644 --- a/bin/ncp/SYSTEM/metrics.sh +++ b/bin/ncp/SYSTEM/metrics.sh @@ -57,7 +57,7 @@ configure() { local htpasswd_file="/usr/local/etc/metrics.htpasswd" rm -f "${htpasswd_file}" - echo "$PASSWORD" | htpasswd -ciB "${htpasswd_file}" metrics + echo "$PASSWORD" | htpasswd -ciB "${htpasswd_file}" "$USER" bash /usr/local/etc/ncp-templates/nextcloud.conf.sh > /etc/apache2/sites-available/nextcloud.conf || { echo "An unexpected error occurred while configuring apache. Rolling back..." >&2 |