Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with the build_bind config race #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Install
* Ensure you have the following prerequisites installed:
* A BIND DNS server. It is not required to be on the same host as the ONA system.
* `sendEmail` for notification messages. [Download here](http://caspian.dotconf.net/menu/Software/SendEmail/) or use the package from your distribution.
* A functioning dcm.pl install on your DHCP server.
* A functioning dcm.pl install on your DNS server.
* Download the archive and place it in your $ONABASE/www/local/plugins directory, the directory must be named `build_bind`
* Make the plugin directory owned by your webserver user I.E.: `chown -R www-data /opt/ona/www/local/plugins/build_bind`
* From within the GUI, click _Plugins->Manage Plugins_ while logged in as an admin user
Expand Down
10 changes: 7 additions & 3 deletions build_bind
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,13 @@ Usage: $(basename $0) [-c] [-s <FQDN>] [-b] [-t] [-d]
-d Enable debug output
"

while getopts "c:sbtd" options; do
# include a default configuration file if present to prevent settings from being
# overwritten whenever the build_bind script is being updated
[ ! -r "${LOCALCONF}" ] || source "${LOCALCONF}"

while getopts "c:s:btd" options; do
case $options in
c ) LOCALCONF=$OPTARG;;
c ) LOCALCONF1=$OPTARG;;
s ) SRV_FQDN=$OPTARG;;
b ) BATCHMODE=1;;
t ) FOOTERS=1;;
Expand All @@ -122,7 +126,7 @@ done

# include a local configuration file if present to prevent settings from being
# overwritten whenever the build_bind script is being updated
[ ! -r "${LOCALCONF}" ] || source "${LOCALCONF}"
[ ! -r "${LOCALCONF1}" ] || source "${LOCALCONF1}"

# This will log a message in a standardized way
# Its job is simple.. take the message that was passed in and log it via some mechanism.
Expand Down