mirror of
https://github.com/adferrand/docker-backuppc.git
synced 2023-11-05 04:40:26 +01:00
Directive config-override is available for 4.x version
This commit is contained in:
parent
ee33865f3a
commit
45fad0128c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user