Skip to content

xtrabackup.sh only touch when backup_success_file_path is set #1522

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

Merged
merged 2 commits into from
Jan 9, 2023

Conversation

JvGinkel
Copy link
Contributor

By default backup_success_file_path is undef what result in a touch command without argument that will produce an error like touch: missing file operand.

With this merge request we only add the touch command to the script when the value of backup_success_file_path is defined.

Also added rspec test for both cases.

@JvGinkel JvGinkel requested a review from a team as a code owner December 20, 2022 23:12
@CLAassistant
Copy link

CLAassistant commented Dec 20, 2022

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@LukasAud LukasAud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@LukasAud LukasAud merged commit 6ab0d29 into puppetlabs:main Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants