fix rsync exclude rules (#7)
This commit is contained in:
parent
65eb5f5758
commit
4458723f48
@ -42,11 +42,11 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
|||||||
else
|
else
|
||||||
rsync_options="-rlD"
|
rsync_options="-rlD"
|
||||||
fi
|
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
|
for dir in storage; do
|
||||||
if [ ! -d "$MONICADIR/$dir" ] || directory_empty "$MONICADIR/$dir"; then
|
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
|
fi
|
||||||
done
|
done
|
||||||
echo "...done!"
|
echo "...done!"
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
storage
|
/storage
|
||||||
|
|||||||
@ -42,11 +42,11 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
|||||||
else
|
else
|
||||||
rsync_options="-rlD"
|
rsync_options="-rlD"
|
||||||
fi
|
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
|
for dir in storage; do
|
||||||
if [ ! -d "$MONICADIR/$dir" ] || directory_empty "$MONICADIR/$dir"; then
|
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
|
fi
|
||||||
done
|
done
|
||||||
echo "...done!"
|
echo "...done!"
|
||||||
|
|||||||
@ -42,11 +42,11 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
|||||||
else
|
else
|
||||||
rsync_options="-rlD"
|
rsync_options="-rlD"
|
||||||
fi
|
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
|
for dir in storage; do
|
||||||
if [ ! -d "$MONICADIR/$dir" ] || directory_empty "$MONICADIR/$dir"; then
|
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
|
fi
|
||||||
done
|
done
|
||||||
echo "...done!"
|
echo "...done!"
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
storage
|
/storage
|
||||||
|
|||||||
@ -42,11 +42,11 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
|||||||
else
|
else
|
||||||
rsync_options="-rlD"
|
rsync_options="-rlD"
|
||||||
fi
|
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
|
for dir in storage; do
|
||||||
if [ ! -d "$MONICADIR/$dir" ] || directory_empty "$MONICADIR/$dir"; then
|
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
|
fi
|
||||||
done
|
done
|
||||||
echo "...done!"
|
echo "...done!"
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
storage
|
/storage
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
storage
|
/storage
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user