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=""
|
database=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mongosh --quiet --replSet rs0 --username $user --password $password --authenticationDatabase $authenticationdatabase --host $host --port $port
|
mongosh --quiet --replSet rs0 --username $user --password $password --authenticationDatabase $authenticationdatabase --host $host --port $port <<EOF
|
||||||
mongosh rs.initiate() <<EOF
|
|
||||||
$database
|
$database
|
||||||
${command}
|
${command}
|
||||||
quit()
|
quit()
|
||||||
|
@ -119,7 +118,6 @@ EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mongosh --quiet --replSet rs0 $database --username $user --password $password --authenticationDatabase $authenticationdatabase --host $host --port $port --eval="$command"
|
mongosh --quiet --replSet rs0 $database --username $user --password $password --authenticationDatabase $authenticationdatabase --host $host --port $port --eval="$command"
|
||||||
mongosh rs.initiate()
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue