Skip to content

Commit

Permalink
try fix docker rootless install
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed May 10, 2024
1 parent 4d9598f commit d585056
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/executor/runnersub.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,9 @@ 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 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/\`id -u\`/bus`, false);
await sshExec(`export SYSTEMD=1`, false);
await sshExec(`export XDG_RUNTIME_DIR=unix:path=/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 d585056

Please sign in to comment.