summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xupdate_jdn.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/update_jdn.sh b/update_jdn.sh
index e99bf87a..2c52ff7f 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -445,7 +445,8 @@ explain "packages configured."
cd $BASEDIR
[ -d /srv/jenkins/features ] && sudo rm -rf /srv/jenkins/features
for dir in bin logparse cucumber live ; do
- sudo cp --preserve=mode,timestamps -r $dir /srv/jenkins/
+ sudo mkdir -p /srv/jenkins/$dir
+ sudo rsync -rpt --delete $dir/ /srv/jenkins/$dir/
sudo chown -R jenkins-adm.jenkins-adm /srv/jenkins/$dir
done
HOST_JOBS="hosts/$HOSTNAME/job-cfg"