Directive config-override is available for 4.x version

This commit is contained in:
Adrien Ferrand 2017-05-21 13:14:38 +02:00
parent ee33865f3a
commit 45fad0128c

View File

@ -29,10 +29,10 @@ if [ -f /firstrun ]; then
--hostname localhost \ --hostname localhost \
--html-dir /var/www/html/BackupPC \ --html-dir /var/www/html/BackupPC \
--html-dir-url /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 # 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} htpasswd -b -c /etc/backuppc/htpasswd ${BACKUPPC_WEB_USER:-backuppc} ${BACKUPPC_WEB_PASSWD:-password}
# Prepare lighttpd # Prepare lighttpd