fix(core): update
This commit is contained in:
@ -33,10 +33,10 @@ export class SmartDaemon {
|
||||
} else {
|
||||
serviceToAdd = existingService;
|
||||
Object.assign(serviceToAdd, optionsArg);
|
||||
await serviceToAdd.save();
|
||||
}
|
||||
await serviceToAdd.save();
|
||||
return serviceToAdd;
|
||||
};
|
||||
}
|
||||
|
||||
public async init() {
|
||||
await this.systemdManager.init();
|
||||
|
@ -35,7 +35,7 @@ export class SmartDaemonSystemdManager {
|
||||
if (await this.smartsystem.env.isLinuxAsync()) {
|
||||
this.shouldExecute = true;
|
||||
} else {
|
||||
console.log('Smartdaemon can only be used on Linuc systems! Refusing to set up a service.');
|
||||
console.log('Smartdaemon can only be used on Linux systems! Refusing to set up a service.');
|
||||
this.shouldExecute = false;
|
||||
}
|
||||
return this.shouldExecute;
|
||||
|
Reference in New Issue
Block a user