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

Update install: --eval doesn't exist anymore in mongo_exec

This commit is contained in:
Alexandre Aubin 2024-06-29 19:24:06 +02:00 committed by GitHub
parent 6756285a45
commit 5f28a24f77
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -48,7 +48,7 @@ ynh_hide_warnings systemctl enable mongod --quiet
ynh_systemctl --service=mongod --action=restart --log_path=/var/log/mongodb/mongod.log --wait_until="Waiting for connections"
if ynh_hide_warnings ynh_mongo_exec --command="printjson(rs.status())" | grep -q "no replset config has been received"; then
ynh_hide_warnings ynh_mongo_exec --command="printjson(rs.initiate())" --eval
ynh_hide_warnings ynh_mongo_exec --command="printjson(rs.initiate())"
fi
#=================================================
@ -217,4 +217,4 @@ ynh_systemctl --service="$app-web" --action="start" --log_path="/var/log/$app/we
# END OF SCRIPT
#=================================================
ynh_script_progression "Installation of $app completed"
ynh_script_progression "Installation of $app completed"