File tree Expand file tree Collapse file tree 5 files changed +24
-5
lines changed Expand file tree Collapse file tree 5 files changed +24
-5
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,10 @@ sudo bash -c "$(curl -fsSL https://raw.githubusercontent.com/3aa49ec6bfc910647fa
35
35
mkdir /logs
36
36
37
37
# Create config directory
38
- mkdir /config
38
+ # mkdir /config
39
39
40
40
# Set default config
41
- cat << EOF > /config /node-teslausb.json
41
+ cat << EOF > /etc /node-teslausb.json
42
42
{
43
43
"archive": {
44
44
"rcloneConfig": "node-teslausb",
Original file line number Diff line number Diff line change
1
+ # sudo bash -c "$(curl -fsSL https://raw.githubusercontent.com/3aa49ec6bfc910647fa1c5a013e48eef/node-teslausb/main/deploy/uninstall.sh)"
2
+
3
+ # This is not a full uninstall script, but it's a start
4
+
5
+ systemctl stop node-teslausb
6
+ systemctl disable node-teslausb
7
+ rm /etc/systemd/system/node-teslausb.service
8
+
9
+ systemctl stop node-teslausb-www
10
+ systemctl disable node-teslausb-www
11
+ rm /etc/systemd/system/node-teslausb-www.service
12
+
13
+ # Remove the worker
14
+ rm -rf /bin/node-teslausb
15
+
16
+ # Remove the worker config
17
+ rm -rf /etc/node-teslausb.json
Original file line number Diff line number Diff line change @@ -9,5 +9,5 @@ export const logNameToPathMapping: { [key: string]: string } = {
9
9
10
10
export const configNameToPathMapping : { [ key : string ] : string } = {
11
11
'rclone' : isDevMode ? '/Users/blake/logs/rclone.log' : '/root/.config/rclone/rclone.conf' ,
12
- 'node-teslausb' : isDevMode ? '/Users/blake/config /node-teslausb.json' : '/config /node-teslausb.json' ,
12
+ 'node-teslausb' : isDevMode ? '/Users/blake/etc /node-teslausb.json' : '/etc /node-teslausb.json' ,
13
13
} ;
Original file line number Diff line number Diff line change 7
7
"scripts" : {
8
8
"test" : " echo \" Error: no test specified\" && exit 1" ,
9
9
"build" : " tsup && npm run copy-package-json" ,
10
- "copy-package-json" : " cp package.json ../build/worker/package.json"
10
+ "copy-package-json" : " cp package.json ../build/worker/package.json" ,
11
+ "setup" : " /path/to/setup.js" ,
12
+ "configure" : " /path/to/config.js"
11
13
},
12
14
"keywords" : [],
13
15
"author" : " " ,
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { checkLockChime } from './modules/lockChimes.js';
8
8
import { readConfigFile } from './modules/config.js' ;
9
9
import { checkAndInstallUpdate , installUpdate } from './modules/update.js' ;
10
10
11
- const configFilePath = '/config /node-teslausb.json' ;
11
+ const configFilePath = '/etc /node-teslausb.json' ;
12
12
const config = await readConfigFile ( configFilePath ) ;
13
13
14
14
interface WorkerState {
You can’t perform that action at this time.
0 commit comments