Skip to content

Commit

Permalink
Handle case when SAVE_PWDS_SCRIPT env variable is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
matejv committed Jun 21, 2012
1 parent 11e7769 commit ee0bd43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/rancid-run.in
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ if [ ! -d $LOGDIR ] ; then
fi

# run password storage code if configured
SAVE_PWDS_SCRIPT=${SAVE_PWDS_SCRIPT:=0}
if [ -f $SAVE_PWDS_SCRIPT ] ; then
@PERLV@ -e "require(\"$SAVE_PWDS_SCRIPT\"); if (!pwdsRancidStart()) {print pwdsGetError().\"\\n\"; exit 1;};"
if [ $? -ne 0 ] ; then
Expand Down

0 comments on commit ee0bd43

Please sign in to comment.