1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/rocketchat_ynh.git synced 2024-09-03 20:16:25 +02:00

Fix mongosh call syntax ?

This commit is contained in:
Alexandre Aubin 2022-12-04 02:47:24 +01:00 committed by GitHub
parent 28a3f9f16b
commit b492f6bad6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -109,7 +109,7 @@ ynh_mongo_exec() {
database=""
fi
mongosh --quiet --username $user --password $password --authenticationDatabase $authenticationdatabase --host $host --port $port <<EOF
mongosh --quiet $user $password $authenticationdatabase $host $port <<EOF
$database
${command}
quit()
@ -123,7 +123,7 @@ EOF
database=""
fi
mongosh --quiet $database --username $user --password $password --authenticationDatabase $authenticationdatabase --host $host --port $port --eval="$command"
mongosh --quiet $database $user $password $authenticationdatabase $host $port --eval="$command"
fi
}