From e91f12c626f52a7dd31a5a34e13037dc1d6f28d4 Mon Sep 17 00:00:00 2001 From: Wildan M Date: Fri, 10 May 2024 23:37:28 +0700 Subject: [PATCH] fix XDG_RUNTIME_DIR --- src/executor/runnercode.js | 2 +- src/executor/runnersub.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/executor/runnercode.js b/src/executor/runnercode.js index b254c71..660bf74 100644 --- a/src/executor/runnercode.js +++ b/src/executor/runnercode.js @@ -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"); diff --git a/src/executor/runnersub.js b/src/executor/runnersub.js index b9c2185..3dfee8a 100644 --- a/src/executor/runnersub.js +++ b/src/executor/runnersub.js @@ -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 "$_"`); }