fix(systemdmanager): migrate systemd file operations to smartfs and tighten TypeScript safety
This commit is contained in:
@@ -21,20 +21,19 @@ export class SmartDaemonService implements ISmartDaemonServiceConstructorOptions
|
||||
optionsArg: ISmartDaemonServiceConstructorOptions
|
||||
) {
|
||||
const service = new SmartDaemonService(smartdaemonRef);
|
||||
for (const key of Object.keys(optionsArg)) {
|
||||
service[key] = optionsArg[key];
|
||||
}
|
||||
Object.assign(service, optionsArg);
|
||||
service.options = optionsArg;
|
||||
return service;
|
||||
}
|
||||
|
||||
public options: ISmartDaemonServiceConstructorOptions;
|
||||
public options!: ISmartDaemonServiceConstructorOptions;
|
||||
public alreadyExists = false;
|
||||
|
||||
public name: string;
|
||||
public version: string;
|
||||
public command: string;
|
||||
public workingDir: string;
|
||||
public description: string;
|
||||
public name!: string;
|
||||
public version!: string;
|
||||
public command!: string;
|
||||
public workingDir!: string;
|
||||
public description!: string;
|
||||
public user?: string;
|
||||
public group?: string;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user