Skip to content

Keep ACLs #79

Description

@Deuscom

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
        );
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions