From 6dae35633498d81861cc393ebc05ab7708eca6b0 Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Fri, 17 Feb 2023 11:09:22 +0100 Subject: [PATCH] Fix scriptservers list users as well --- templates/script/listusers.erb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/script/listusers.erb.sh b/templates/script/listusers.erb.sh index 7d49a07..5243c9d 100644 --- a/templates/script/listusers.erb.sh +++ b/templates/script/listusers.erb.sh @@ -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