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

Merge remote-tracking branch 'origin/fix-mongosh-call-syntax' into testing

This commit is contained in:
Éric Gaspar 2022-12-11 20:48:07 +01:00
commit f6da0e2660

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
}