From 45fad0128cc63a403f1afddc5f3b7b7e816609ba Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Sun, 21 May 2017 13:14:38 +0200 Subject: [PATCH] Directive config-override is available for 4.x version --- files/entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/entrypoint.sh b/files/entrypoint.sh index 13e0ab3..ebc2c82 100755 --- a/files/entrypoint.sh +++ b/files/entrypoint.sh @@ -29,10 +29,10 @@ if [ -f /firstrun ]; then --hostname localhost \ --html-dir /var/www/html/BackupPC \ --html-dir-url /BackupPC \ - --install-dir /usr/local/BackupPC + --install-dir /usr/local/BackupPC \ + --config-override CgiAdminUsers="'${BACKUPPC_WEB_USER:-backuppc}'" # Configure WEB UI access - sed -ie "s/^\$Conf{CgiAdminUsers}\s*=\s*'\w*'/\$Conf{CgiAdminUsers} = '${BACKUPPC_WEB_USER:-backuppc}'/g" /etc/backuppc/config.pl htpasswd -b -c /etc/backuppc/htpasswd ${BACKUPPC_WEB_USER:-backuppc} ${BACKUPPC_WEB_PASSWD:-password} # Prepare lighttpd