Skip to content

Commit

Permalink
fix XDG_RUNTIME_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed May 10, 2024
1 parent ffbd087 commit e91f12c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/executor/runnercode.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export async function runConfigCodeFeatures(key, value, writeLog, domaindata, ss
let arg;
switch (key) {
case 'docker':
await sshExec(`export XDG_RUNTIME_DIR=unix:path=/run/user/$(id -u)`, false);
await sshExec(`export XDG_RUNTIME_DIR=/run/user/$(id -u)`, false);
await sshExec(`export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus`, false);
if (value === '' || value === 'on') {
await writeLog("$> Enabling docker features");
Expand Down
2 changes: 1 addition & 1 deletion src/executor/runnersub.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export async function runConfigSubdomain(config, domaindata, subdomain, sshExec,
await sshExec(`shopt -s dotglob`, false);
await sshExec(`export DOMAIN='${subdomain}'`, false);
// enable managing systemd for linger user
await sshExec(`export XDG_RUNTIME_DIR=unix:path=/run/user/$(id -u)`, false);
await sshExec(`export XDG_RUNTIME_DIR=/run/user/$(id -u)`, false);
await sshExec(`export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus`, false);
await sshExec(`mkdir -p ${subdomaindata['Home directory']}/public_html && cd "$_"`);
}
Expand Down

0 comments on commit e91f12c

Please sign in to comment.