Skip to content

Commit

Permalink
Make an entrypoint compatible for both branches
Browse files Browse the repository at this point in the history
  • Loading branch information
adferrand committed Apr 22, 2017
1 parent 0ef5ab7 commit 70c0fbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 60 deletions.
58 changes: 0 additions & 58 deletions Dockerfile

This file was deleted.

4 changes: 2 additions & 2 deletions files/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
--config-override CgiAdminUsers="'${BACKUPPC_WEB_USER:-backuppc}'"
--install-dir /usr/local/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
Expand Down

0 comments on commit 70c0fbe

Please sign in to comment.