mirror of
https://github.com/YunoHost-Apps/nodebb_ynh.git
synced 2024-09-03 19:46:29 +02:00
[Fix] $db* error
This commit is contained in:
parent
30477186fb
commit
9acb28b89e
1 changed files with 2 additions and 2 deletions
|
@ -109,8 +109,8 @@ pushd $final_path
|
|||
dbname=$app
|
||||
dbuser=$app
|
||||
dbpass=$(ynh_string_random)
|
||||
sudo mongo --shell "$dbname" --eval 'db.createUser( { user: "$dbuser", pwd: "$dbpass", roles: [ "readWrite" ] } );' <<< exit
|
||||
sudo mongo --shell "$dbname" --eval 'db.grantRolesToUser("$dbuser",[{ role: "clusterMonitor", db: "admin" }]);' <<< exit
|
||||
sudo mongo --shell "$dbname" --eval 'db.createUser( { user: "'${dbuser}'", pwd: "'${dbpass}'", roles: [ "readWrite" ] } );' <<< exit
|
||||
sudo mongo --shell "$dbname" --eval 'db.grantRolesToUser("'${dbuser}'",[{ role: "clusterMonitor", db: "admin" }]);' <<< exit
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue