Skip to content

Commit

Permalink
CAT-1147 erb to epp
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinesh Gujar authored and Dinesh Gujar committed Jul 31, 2023
1 parent ca5bbbb commit b48ff3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/mysqlbackup.sh.epp
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ USER=<%= $backupuser %>
PASS='<%= $backuppassword_unsensitive %>'
MAX_ALLOWED_PACKET=<%= $maxallowedpacket %>
DIR=<%= $backupdir %>
ROTATE=<%= [ Integer($backuprotate) - 1, 0 ].max %> #need to check
ROTATE=<%= [ Integer($backuprotate) - 1, 0 ].max %>

# Create temporary mysql cnf file.
TMPFILE='mktemp /tmp/backup.XXXXXX' or exit 1
TMPFILE='mktemp /tmp/backup.XXXXXX' || exit 1
echo -e "[client]\npassword=$PASS\nuser=$USER\nmax_allowed_packet=$MAX_ALLOWED_PACKET" > $TMPFILE

<% if $prescript { -%>
Expand Down

0 comments on commit b48ff3b

Please sign in to comment.