listusers.sh: disabel tls verify for rclone mkdir because we use ip address with webdav.
This commit is contained in:
parent
88ee8c2b67
commit
ca27f46ffe
|
@ -25,7 +25,7 @@ base_dir="${project}:${bucket}"
|
||||||
mountpoint="/opt/statistics"
|
mountpoint="/opt/statistics"
|
||||||
customer_dir="${mountpoint}/${location}"
|
customer_dir="${mountpoint}/${location}"
|
||||||
mkdir -p "${customer_dir}"
|
mkdir -p "${customer_dir}"
|
||||||
rclone mkdir "${base_dir}/${location}"
|
rclone mkdir --no-check-certificate --webdav-headers "Host,sunet.drive.sunet.se" --use-cookies "${base_dir}/${location}"
|
||||||
|
|
||||||
echo "${users}" | awk 'BEGIN{print "{"} {print t "\""$1"\": \""$2"\""} {t=","} END{print "}"}' | jq . >"${customer_dir}/users.json"
|
echo "${users}" | awk 'BEGIN{print "{"} {print t "\""$1"\": \""$2"\""} {t=","} END{print "}"}' | jq . >"${customer_dir}/users.json"
|
||||||
status=0
|
status=0
|
||||||
|
|
Loading…
Reference in a new issue