mirror of
https://github.com/YunoHost-Apps/nodebb_ynh.git
synced 2024-09-03 19:46:29 +02:00
Update install
This commit is contained in:
parent
49e547c1e6
commit
b095e011dd
1 changed files with 3 additions and 3 deletions
|
@ -95,9 +95,9 @@ dbname=$app
|
|||
dbuser=$app
|
||||
dbpass=$(ynh_string_random)
|
||||
sudo mongo <<< \
|
||||
"use $dbname;
|
||||
db.createUser( { user: "$dbuser", pwd: "$dbpass", roles: [ "readWrite" ] } );
|
||||
db.grantRolesToUser("$dbuser",[{ role: "clusterMonitor", db: "admin" }]);"
|
||||
"use $dbname;"
|
||||
<<< "db.createUser( { user: "$dbuser", pwd: "$dbpass", roles: [ "readWrite" ] } );"
|
||||
<<< "db.grantRolesToUser("$dbuser",[{ role: "clusterMonitor", db: "admin" }]);"
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue