root when it should be
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import hash from "object-hash";
|
||||
import { $ } from "bun";
|
||||
import path from "path";
|
||||
import { config, indexedConfig } from "./config";
|
||||
import { config, indexedConfig, isSelf } from "./config";
|
||||
import fs from "fs";
|
||||
import { rebuildCaddyfile } from "./caddy";
|
||||
|
||||
@@ -47,6 +47,7 @@ export const deploy = async ({ host, commitHash }: DeployInstance) => {
|
||||
deploymentId,
|
||||
logsDir: path.join(serviceDir, "logs"),
|
||||
serviceDir,
|
||||
user: isSelf(service) ? "root" : "drm",
|
||||
}
|
||||
);
|
||||
await $`ln -sf ${serviceDir}/${systemdServiceName} ${config.systemServicesDir}/${systemdServiceName}`;
|
||||
|
||||
Reference in New Issue
Block a user