Skip to content

Commit

Permalink
Configure hosts file when installing NRO version
Browse files Browse the repository at this point in the history
Adds checking for hosts configuration in the nro:install script and adds it if missing.
  • Loading branch information
stduerre authored and comzeradd committed Dec 18, 2024
1 parent b431f53 commit a352778
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/nro-install.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,20 @@ const {createDatabase, importDatabase, databaseExists, useDatabase} = require('.
const {basename} = require('path');
const {existsSync} = require('fs');
const {createAdminUser} = require('./lib/admin-user');
const {configureHosts} = require('./lib/hosts');

/**
* Node version control
*/
console.log('Node version: ' + process.version);
nodeCheck();

/**
* Configure hosts file
*/
console.log('Configure /etc/hosts file ...');
configureHosts();

/**
* Config
*/
Expand Down

0 comments on commit a352778

Please sign in to comment.