Skip to content

Commit

Permalink
Updated package
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterbrandsen committed Sep 18, 2023
1 parent bc61dfc commit 4eca6fa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "screeps-grafana-go_carbon",
"version": "1.0.4",
"version": "1.0.5",
"scripts": {
"setup": "node src/setup/setup.js setup",
"start": "node src/setup/index.js --grafanaPort=3000",
Expand Down
8 changes: 0 additions & 8 deletions src/setup/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,6 @@ async function UpdateDockerComposeFile() {
console.log('Docker-compose file created');
}

function UpdateTraefikConfigFolder() {
const traefikConfigFolder = join(__dirname, '../../traefikConfig');
if (fs.existsSync(traefikConfigFolder) && !argv.force) return console.log('Traefik config folder already exists, use --force to overwrite it');

fse.copySync(join(__dirname, '../../traefikConfig.example'), traefikConfigFolder);
}

function UpdateUsersFile() {
const usersFile = join(__dirname, '../../users.json');
if (fs.existsSync(usersFile) && !argv.force) return console.log('Users file already exists, use --force to overwrite it');
Expand Down Expand Up @@ -162,7 +155,6 @@ async function Setup(mArgv) {
UpdateEnvFile();
await UpdateDockerComposeFile();
UpdateGrafanaConfigFolder();
UpdateTraefikConfigFolder();
}

if (process.argv[2] === 'setup') Setup();
Expand Down

0 comments on commit 4eca6fa

Please sign in to comment.