Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ncp/SYSTEM/metrics.sh')
-rw-r--r--bin/ncp/SYSTEM/metrics.sh2
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