Fix port and add more output

This commit is contained in:
Micke Nordin 2024-11-12 16:01:43 +01:00
parent 1aae63ba07
commit ce745ff6b0
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257

View file

@ -18,11 +18,17 @@ function get_config {
${occ} files_external:config ${mountid} ${1} | tr -d '\n\t\r'
}
echo "Gathering information, hang tight."
echo -n "."
bucket="$(get_config bucket)"
echo -n "."
hostname="$(get_config hostname)"
echo -n "."
key="$(get_config key)"
port="$(get_config port)"
echo -n "."
region="$(get_config region)"
echo -n "."
secret="$(get_config secret)"
jsonfile="/tmp/${user}-user-bucket.json"
mount_point="${user/@/-}"
@ -42,7 +48,7 @@ echo '
"hostname": "'${hostname}'",
"key": "'${key}'",
"legacy_auth": false,
"port": "'${port}'",
"port": "443",
"region": "'${region}'",
"secret": "'${secret}'",
"storageClass": "",