mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 14:03:42 +00:00
fix: don't var when no var
This commit is contained in:
parent
d43fc62d89
commit
5f7d1f589a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user