Update app.js
Browse files
app.js
CHANGED
|
@@ -78,7 +78,7 @@ seedShellularConfig();
|
|
| 78 |
function getHashedMachineId() {
|
| 79 |
try {
|
| 80 |
const raw = fs.readFileSync('/etc/machine-id', 'utf-8').trim();
|
| 81 |
-
return
|
| 82 |
} catch {
|
| 83 |
return null;
|
| 84 |
}
|
|
@@ -502,4 +502,4 @@ app.listen(PORT, '0.0.0.0', () => {
|
|
| 502 |
|
| 503 |
// ββ Graceful shutdown ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 504 |
process.on('SIGTERM', () => { stopShellular(); stopSyncPy(); stopBore(); });
|
| 505 |
-
process.on('SIGINT', () => { stopShellular(); stopSyncPy(); stopBore(); });
|
|
|
|
| 78 |
function getHashedMachineId() {
|
| 79 |
try {
|
| 80 |
const raw = fs.readFileSync('/etc/machine-id', 'utf-8').trim();
|
| 81 |
+
return raw;
|
| 82 |
} catch {
|
| 83 |
return null;
|
| 84 |
}
|
|
|
|
| 502 |
|
| 503 |
// ββ Graceful shutdown ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 504 |
process.on('SIGTERM', () => { stopShellular(); stopSyncPy(); stopBore(); });
|
| 505 |
+
process.on('SIGINT', () => { stopShellular(); stopSyncPy(); stopBore(); });
|