RSYNC_COMMAND=$(rsync -L -aEim --delete -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" root@master_de.myidc.win:/home/sync/vala_nginx_stream/* /etc/nginx/vh/)

    if [ $? -eq 0 ]; then
        # Success do some more work!

        if [ -n "${RSYNC_COMMAND}" ]; then
            # Stuff to run, because rsync has changes
			echo "changed"
			systemctl restart nginx
        else
            # No changes were made by rsync
			echo "no changed"
        fi
    else
        # Something went wrong!
		echo "error detected!"
        exit 1
    fi