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:
parent
43482045a0
commit
9cd4e14f41
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue