Skip to content

Commit

Permalink
export XDG to docker
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed May 10, 2024
1 parent d585056 commit ffbd087
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/executor/runnercode.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ 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 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus`, false);
if (value === '' || value === 'on') {
await writeLog("$> Enabling docker features");
await writeLog(await dockerExec.enableDocker(domaindata['Username']));
Expand Down
1 change: 0 additions & 1 deletion src/executor/runnersub.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ 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 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 ffbd087

Please sign in to comment.