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

Keep ACLs #79

Open
Deuscom opened this issue Feb 22, 2017 · 0 comments
Open

Keep ACLs #79

Deuscom opened this issue Feb 22, 2017 · 0 comments

Comments

@Deuscom
Copy link

Deuscom commented Feb 22, 2017

It would be good to reapply permissions from parent target directory.

I suggest to add this (out of adding the respective define in config):

// Remove the TMP_DIR (depends on CLEAN_UP)
if (RESTORE_ACL) {
        $commands['acls'] = sprintf(
                'getfacl %s | sed -e "s/x$/X/" | setfacl -R --set-file=- %s'
                , TARGET_DIR
                , TARGET_DIR
        );
}

just after (in the post section)

// Remove the TMP_DIR (depends on CLEAN_UP)
if (CLEAN_UP) {
        $commands['cleanup'] = sprintf(
                'rm -rf %s'
                , TMP_DIR
        );
}
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

No branches or pull requests

1 participant