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

Test if Amanda storage area is writable #1643

Merged
merged 2 commits into from Jan 7, 2022
Merged

Test if Amanda storage area is writable #1643

merged 2 commits into from Jan 7, 2022

Conversation

mstormi
Copy link
Contributor

@mstormi mstormi commented Jan 6, 2022

fixes: #1640

Signed-off-by: Markus Storm markus.storm@gmx.net

Signed-off-by: Markus Storm <markus.storm@gmx.net>
@mstormi mstormi requested a review from ecdye January 6, 2022 14:56
@ecdye ecdye changed the title test for Amanda storage area to be writable Test if Amanda storage area is writable Jan 6, 2022
Comment on lines 183 to 184
if ! cond_redirect sudo -u "${backupUser}" "touch ${storageLoc}/TEST"; then echo "FAILED (storage write access for user backup)"; return 1; fi
rm -f "${storageLoc}/TEST"
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't we want this after we change the permissions of the backup user, ie move to after line 186?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

right, I now combined those

Signed-off-by: Markus Storm <markus.storm@gmx.net>
Copy link
Contributor

@ecdye ecdye left a comment

Choose a reason for hiding this comment

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

LGTM, DNT

@mstormi mstormi merged commit 1b3b56f into main Jan 7, 2022
@ecdye ecdye deleted the amandatest branch January 8, 2022 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Amanda install test for writeability
2 participants