Workaround bug which causes BackupPC fail to start when container launched with existing configuration

This commit is contained in:
Konstantin Dmitriev 2019-01-29 12:13:32 +07:00 committed by GitHub
parent fa81021cfc
commit d65d619fff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,6 +34,9 @@ if [ -f /firstrun ]; then
# 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}
# Workaround bug which causes BackupPC fail to start when container launched with existing configuration
sed -ie "s|^\$Conf{CgiURL}\s*=\s*''http://localhost/cgi-bin/BackupPC/BackupPC_Admin''|\$Conf{CgiURL} = 'http://localhost/cgi-bin/BackupPC/BackupPC_Admin'|g" /etc/backuppc/config.pl
# Prepare lighttpd
if [ "$USE_SSL" = true ]; then