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

Add write permission to user before removal #176

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dankh
Copy link

@dankh dankh commented Oct 22, 2019

If backup has expired and there are read only files the files won't be deleted and the backup will never expire.

@abkrim
Copy link
Contributor

abkrim commented Mar 30, 2021

This question is very important. Please, merge in project

@@ -89,6 +89,7 @@ fn_expire_backup() {
fi

fn_log_info "Expiring $1"
fn_run_cmd "chmod -R u+w $1"
Copy link
Owner

Choose a reason for hiding this comment

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

Needs single quotes around "$1"

@dankh
Copy link
Author

dankh commented Mar 30, 2021

I have rebased the branch to master with quotes added.

@laurent22
Copy link
Owner

laurent22 commented Mar 30, 2021

The pull request now includes 3 unrelated additional changes, so please could you remove them? If other fixes are needed they should be done in a separate pull request.

@dankh dankh force-pushed the chmod-before-delete-expired branch from 86d7077 to 45149a3 Compare March 30, 2021 12:05
@dankh
Copy link
Author

dankh commented Mar 30, 2021

Rebase removed, only my changes present in pull request.

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.

3 participants