RSYNC_COMMAND=$(rsync --partial -L -aEim -e "ssh -p 5055 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" root@master_de.myidc.win:/var/lib/GeoIP/*.mmdb /etc/nginx/config/)

    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
