fix rsync exclude rules (#7)

This commit is contained in:
Alexis Saettler 2020-04-08 21:44:56 +02:00 committed by GitHub
parent 65eb5f5758
commit 4458723f48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 12 additions and 12 deletions

View File

@ -42,11 +42,11 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
else
rsync_options="-rlD"
fi
rsync $rsync_options --delete --exclude-from=/usr/local/share/upgrade.exclude $MONICASRC/ $MONICADIR
rsync $rsync_options --delete --exclude-from=/usr/local/share/upgrade.exclude $MONICASRC/ $MONICADIR/
for dir in storage; do
if [ ! -d "$MONICADIR/$dir" ] || directory_empty "$MONICADIR/$dir"; then
rsync $rsync_options --include "/$dir/" --exclude '/*' $MONICASRC/ $MONICADIR
rsync $rsync_options --include "/$dir/" --exclude '/*' $MONICASRC/ $MONICADIR/
fi
done
echo "...done!"

View File

@ -1 +1 @@
storage
/storage

View File

@ -42,11 +42,11 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
else
rsync_options="-rlD"
fi
rsync $rsync_options --delete --exclude-from=/usr/local/share/upgrade.exclude $MONICASRC/ $MONICADIR
rsync $rsync_options --delete --exclude-from=/usr/local/share/upgrade.exclude $MONICASRC/ $MONICADIR/
for dir in storage; do
if [ ! -d "$MONICADIR/$dir" ] || directory_empty "$MONICADIR/$dir"; then
rsync $rsync_options --include "/$dir/" --exclude '/*' $MONICASRC/ $MONICADIR
rsync $rsync_options --include "/$dir/" --exclude '/*' $MONICASRC/ $MONICADIR/
fi
done
echo "...done!"

View File

@ -42,11 +42,11 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
else
rsync_options="-rlD"
fi
rsync $rsync_options --delete --exclude-from=/usr/local/share/upgrade.exclude $MONICASRC/ $MONICADIR
rsync $rsync_options --delete --exclude-from=/usr/local/share/upgrade.exclude $MONICASRC/ $MONICADIR/
for dir in storage; do
if [ ! -d "$MONICADIR/$dir" ] || directory_empty "$MONICADIR/$dir"; then
rsync $rsync_options --include "/$dir/" --exclude '/*' $MONICASRC/ $MONICADIR
rsync $rsync_options --include "/$dir/" --exclude '/*' $MONICASRC/ $MONICADIR/
fi
done
echo "...done!"

View File

@ -1 +1 @@
storage
/storage

View File

@ -42,11 +42,11 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
else
rsync_options="-rlD"
fi
rsync $rsync_options --delete --exclude-from=/usr/local/share/upgrade.exclude $MONICASRC/ $MONICADIR
rsync $rsync_options --delete --exclude-from=/usr/local/share/upgrade.exclude $MONICASRC/ $MONICADIR/
for dir in storage; do
if [ ! -d "$MONICADIR/$dir" ] || directory_empty "$MONICADIR/$dir"; then
rsync $rsync_options --include "/$dir/" --exclude '/*' $MONICASRC/ $MONICADIR
rsync $rsync_options --include "/$dir/" --exclude '/*' $MONICASRC/ $MONICADIR/
fi
done
echo "...done!"

View File

@ -1 +1 @@
storage
/storage

View File

@ -1 +1 @@
storage
/storage