From e42afd4c600b31051f8958d3003ffd27d14b707f Mon Sep 17 00:00:00 2001 From: frju365 Date: Sun, 11 Mar 2018 12:44:17 +0100 Subject: [PATCH] Update install --- scripts/install | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/install b/scripts/install index 704385f..bcf3843 100644 --- a/scripts/install +++ b/scripts/install @@ -135,6 +135,9 @@ dbuser=$app dbpass=$(ynh_string_random) mongo --shell "$dbname" --eval 'db.createUser( { user: "'${dbuser}'", pwd: "'${dbpass}'", roles: [ "readWrite" ] } );' <<< exit mongo --shell "$dbname" --eval 'db.grantRolesToUser("'${dbuser}'",[{ role: "clusterMonitor", db: "admin" }]);' <<< exit +ynh_app_setting_set $app dbuser $dbuser +ynh_app_setting_set $app dbpass $dbpass +ynh_app_setting_set $app dbname $dbname popd #=================================================