From b7d017a5a453e766fe29e345fad472291f27c802 Mon Sep 17 00:00:00 2001 From: Andrew Cutler Date: Tue, 21 Feb 2017 15:07:29 +1100 Subject: [PATCH] Fix selinux compatibility: do not try to copy selinux ACLS --- cacher.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cacher.sh b/cacher.sh index fd523a7..74fcac9 100644 --- a/cacher.sh +++ b/cacher.sh @@ -25,7 +25,7 @@ if [[ -n "$PLUGIN_REBUILD" && "$PLUGIN_REBUILD" == "true" ]]; then if [ -d "$source" ]; then echo "Rebuilding cache for $source..." mkdir -p "/cache/$DRONE_REPO_OWNER/$DRONE_REPO_NAME/$DRONE_JOB_NUMBER/$source" && \ - rsync -aHAX --delete "$source/" "/cache/$DRONE_REPO_OWNER/$DRONE_REPO_NAME/$DRONE_JOB_NUMBER/$source" + rsync -aHA --delete "$source/" "/cache/$DRONE_REPO_OWNER/$DRONE_REPO_NAME/$DRONE_JOB_NUMBER/$source" else echo "$source does not exist, removing from cached folder..." rm -rf "/cache/$DRONE_REPO_OWNER/$DRONE_REPO_NAME/$DRONE_JOB_NUMBER/$source" @@ -37,7 +37,7 @@ elif [[ -n "$PLUGIN_RESTORE" && "$PLUGIN_RESTORE" == "true" ]]; then if [ -d "/cache/$DRONE_REPO_OWNER/$DRONE_REPO_NAME/$DRONE_JOB_NUMBER/$source" ]; then echo "Restoring cache for $source..." mkdir -p "$source" && \ - rsync -aHAX --delete "/cache/$DRONE_REPO_OWNER/$DRONE_REPO_NAME/$DRONE_JOB_NUMBER/$source/" "$source" + rsync -aHA --delete "/cache/$DRONE_REPO_OWNER/$DRONE_REPO_NAME/$DRONE_JOB_NUMBER/$source/" "$source" else echo "No cache for $source" fi