diff --git a/templates/mysqlbackup.sh.epp b/templates/mysqlbackup.sh.epp index b4fbd3451..7b7a04c4e 100644 --- a/templates/mysqlbackup.sh.epp +++ b/templates/mysqlbackup.sh.epp @@ -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 { -%>