1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/overleaf_ynh.git synced 2024-09-03 19:56:27 +02:00

Update _common.sh

This commit is contained in:
Thomas 2024-02-15 14:25:38 +01:00 committed by GitHub
parent 95179e6e02
commit 31519c0086
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,4 @@
#!/bin/bash
#=================================================
# COMMON VARIABLES
#=================================================
@ -103,7 +102,7 @@ ynh_mongo_exec() {
database=""
fi
mongosh --quiet --replSet rs0 --username $user --password $password --authenticationDatabase $authenticationdatabase --host $host --port $port <<EOF
mongosh --quiet --username $user --password $password --authenticationDatabase $authenticationdatabase --host $host --port $port <<EOF
$database
${command}
quit()
@ -117,7 +116,7 @@ EOF
database=""
fi
mongosh --quiet --replSet rs0 $database --username $user --password $password --authenticationDatabase $authenticationdatabase --host $host --port $port --eval="$command"
mongosh --quiet $database --username $user --password $password --authenticationDatabase $authenticationdatabase --host $host --port $port --eval="$command"
fi
}