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

fix common.sh

This commit is contained in:
Thomas 2024-02-15 14:02:56 +01:00 committed by GitHub
parent 43482045a0
commit 9cd4e14f41
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -103,8 +103,7 @@ ynh_mongo_exec() {
database=""
fi
mongosh --quiet --replSet rs0 --username $user --password $password --authenticationDatabase $authenticationdatabase --host $host --port $port
mongosh rs.initiate() <<EOF
mongosh --quiet --replSet rs0 --username $user --password $password --authenticationDatabase $authenticationdatabase --host $host --port $port <<EOF
$database
${command}
quit()
@ -119,7 +118,6 @@ EOF
fi
mongosh --quiet --replSet rs0 $database --username $user --password $password --authenticationDatabase $authenticationdatabase --host $host --port $port --eval="$command"
mongosh rs.initiate()
fi
}