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

Change mongo API

This commit is contained in:
orhtej2 2023-07-28 19:42:11 +02:00 committed by GitHub
parent dc8ee92e6d
commit a2f10e9fb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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