diff --git a/package-lock.json b/package-lock.json index e51b5a7..3299eda 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "domcloud-bridge", - "version": "0.40.1", + "version": "0.40.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "domcloud-bridge", - "version": "0.40.1", + "version": "0.40.2", "license": "MIT", "dependencies": { "axios": "^1.6.5", diff --git a/package.json b/package.json index 9aa1358..1afbb77 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "domcloud-bridge", - "version": "0.40.1", + "version": "0.40.2", "description": "Deployment runner for DOM Cloud", "main": "app.js", "engines": { diff --git a/src/executor/runner.js b/src/executor/runner.js index 5e01d63..4937e36 100644 --- a/src/executor/runner.js +++ b/src/executor/runner.js @@ -796,6 +796,8 @@ export async function runConfigSubdomain(config, domaindata, subdomain, sshExec, if (config.source || config.commands) { await sshExec(`shopt -s dotglob`, false); await sshExec(`export DOMAIN='${subdomain}'`, false); + // enable managing systemd for linger user + 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 "$_"`); }