checks for checksum instead of date when syncing files
This commit is contained in:
@@ -38,7 +38,9 @@ if [ "${remote_is_docker}" != "yes" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if rsync --compress --delete --delete-excluded --exclude-from="${deployment_exclude_file}" --executability --human-readable --progress --update --recursive "${local_directory_path}/" "${remote_ssh_string}":"${remote_directory_path}"; then
|
# --update removed after kartolok-child shenaningans
|
||||||
|
# --checksum added instead
|
||||||
|
if rsync --checksum --compress --delete --delete-excluded --exclude-from="${deployment_exclude_file}" --executability --human-readable --progress --recursive "${local_directory_path}/" "${remote_ssh_string}":"${remote_directory_path}"; then
|
||||||
echo syncing OK
|
echo syncing OK
|
||||||
else
|
else
|
||||||
echo syncing NOK
|
echo syncing NOK
|
||||||
@@ -53,3 +55,19 @@ if [ "${remote_is_docker}" != "yes" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "${remote_ssh_string}" = "staging" ]; then
|
||||||
|
set -x
|
||||||
|
ssh federal sudo service varnish restart
|
||||||
|
set +x
|
||||||
|
fi
|
||||||
|
if [ "${remote_ssh_string}" = "prod" ]; then
|
||||||
|
set -x
|
||||||
|
ssh federal sudo service varnish restart
|
||||||
|
set +x
|
||||||
|
fi
|
||||||
|
if [ "${remote_ssh_string}" = "network" ]; then
|
||||||
|
set -x
|
||||||
|
ssh network sudo service varnish restart
|
||||||
|
set +x
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user