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
2543c8fa50
commit
35f70148e3
1 changed files with 2 additions and 6 deletions
|
@ -104,12 +104,8 @@ pushd $final_path
|
||||||
dbname=$app
|
dbname=$app
|
||||||
dbuser=$app
|
dbuser=$app
|
||||||
dbpass=$(ynh_string_random)
|
dbpass=$(ynh_string_random)
|
||||||
sudo mongo <<< \
|
sudo mongo --shell "$dbname" --eval 'db.createUser( { user: "$dbuser", pwd: "$dbpass", roles: [ "readWrite" ] } );' <<< exit
|
||||||
"use $dbname;"
|
sudo mongo --shell "$dbname" --eval 'db.grantRolesToUser("$dbuser",[{ role: "clusterMonitor", db: "admin" }]);' <<< exit
|
||||||
sudo mongo --shell "$dbname" <<< \
|
|
||||||
'db.createUser( { user: "$dbuser", pwd: "$dbpass", roles: [ "readWrite" ] } );'
|
|
||||||
sudo mongo --shell "$dbname" <<< \
|
|
||||||
'db.grantRolesToUser("$dbuser",[{ role: "clusterMonitor", db: "admin" }]);'
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue