mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-06 23:20:08 -05:00
fix: don't var when no var
This commit is contained in:
@@ -462,6 +462,11 @@ class LogService extends BaseService {
|
||||
{
|
||||
const fs = require('fs');
|
||||
const path = '/var/puter/logs/heyputer';
|
||||
// Making this directory if it doesn't exist causes issues
|
||||
// for users running with development instructions
|
||||
if ( ! fs.existsSync('/var/puter') ) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
fs.mkdirSync(path, { recursive: true });
|
||||
this.log_directory = path;
|
||||
|
||||
Reference in New Issue
Block a user