Skip to content

Commit

Permalink
www: Docker fixes for new nipap packaging
Browse files Browse the repository at this point in the history
Changes to the nipap-www Docker setup to handle changes introduced by
new packaging of nipap.

* Correct path to nipap-passwd
* Correct path to sample config file
  • Loading branch information
garberg committed Jan 21, 2025
1 parent b8fcb9f commit 67d4fa9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nipap-www/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ fi

# Create NIPAP configuration file
if [ ! -e /etc/nipap/nipap.conf ]; then
envtpl --keep-template --allow-missing -o /etc/nipap/nipap.conf /nipap/nipap.conf.dist
envtpl --keep-template --allow-missing -o /etc/nipap/nipap.conf /usr/local/share/nipap/nipap.conf.dist
fi

# Set up local auth database
if [ ! -e /etc/nipap/local_auth.db ]; then
/usr/sbin/nipap-passwd create-database
/usr/local/bin/nipap-passwd create-database
fi
if [ `nipap-passwd list | egrep -c ^$WWW_USERNAME\\\s` -eq 0 ]; then
/usr/sbin/nipap-passwd add -u $WWW_USERNAME -p $WWW_PASSWORD -n "NIPAP WWW user" -t
/usr/local/bin/nipap-passwd add -u $WWW_USERNAME -p $WWW_PASSWORD -n "NIPAP WWW user" -t
fi

# Configure apache
Expand Down

0 comments on commit 67d4fa9

Please sign in to comment.