Fix scriptservers list users as well

This commit is contained in:
Micke Nordin 2023-02-17 11:09:22 +01:00
parent edddcbc5da
commit 6dae356334
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257

View file

@ -16,7 +16,7 @@ echo "${userjson}" | jq . >"${customer_dir}/users.json"
status=${?}
if [[ ${status} -eq 0 ]]; then
# something is wrong if we cant copy the file in 30 seconds, so we should note that
if ! timeout 30s rclone copy --use-cookies "${customer_dir}/users.json" "${base_dir}/${location}/"; then
if ! timeout 30s rclone copy --no-check-certificate --webdav-headers "Host,sunet.drive.sunet.se" --use-cookies "${customer_dir}/users.json" "${base_dir}/${location}/"; then
status=1
fi
fi