Skip to content

Commit

Permalink
Merge pull request #1424 from garberg/correct_nipap.conf.dist_path
Browse files Browse the repository at this point in the history
Docker fixes to WWW for new nipap packaging
  • Loading branch information
garberg authored Jan 21, 2025
2 parents b8fcb9f + 67d4fa9 commit 9bb7b72
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 9bb7b72

Please sign in to comment.