Skip to content

Commit

Permalink
fix: make install scripts more idempotent regardless of chroot install
Browse files Browse the repository at this point in the history
  • Loading branch information
davidzwa committed Oct 14, 2023
1 parent ce9e30e commit 1ad737a
Show file tree
Hide file tree
Showing 8 changed files with 274 additions and 118 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,9 @@ src/vagrant/.vagrant
gh-md-toc

*.xz

src/modules/monsterpi/filesystem/home/pi/fdm-monster-daemon/node_modules/

src/modules/monsterpi/filesystem/home/pi/fdm-monster/dist-active/

src/modules/monsterpi/filesystem/home/pi/fdm-monster/dist-zips/
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/**
* Created by D. Zwart
* Description: Installs the Linux Service for MonsterPi's FDM Monster
* v1.0
* 05/05/2023
* v2.0
* 14/10/2023
*/

const { Service } = require("node-linux");
const { join } = require("path");

// Create a new service object
const rootPath = join(__dirname, "../fdm-monster/");
const rootPath = join(__dirname, "../fdm-monster/dist-active");
const svc = new Service({
name: "FDM Monster",
description:
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
"name": "fdm-monster-daemon",
"version": "1.0.0",
"version": "2.0.0",
"description": "Daemon service wrapper ",
"main": "./install-fdm-monster.js",
"license": "MIT",
"scripts": {
"install": "node ./install-fdm-monster.js",
"uninstall": "node ./uninstall-fdm-monster.js"
"install": "node ./install-fdm-monster.js",
"uninstall": "node ./uninstall-fdm-monster.js"
},
"dependencies": {}
}
"dependencies": {
"node-linux": "^0.1.12"
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/**
* Created by D. Zwart
* Description: Uninstalls the Linux Service for MonsterPi's FDM Monster
* v1.0
* 05/05/2023
* v2.0
* 14/10/2023
*/

const { Service } = require("node-linux");
const { join } = require("path");

// Create a new service object
const rootPath = join(__dirname, "../fdm-monster/");
const rootPath = join(__dirname, "../fdm-monster/dist-active");
const svc = new Service({
name: "FDM Monster",
description:
Expand Down

This file was deleted.

Loading

0 comments on commit 1ad737a

Please sign in to comment.