Skip to content

Commit

Permalink
Fix systemd on user
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Feb 6, 2024
1 parent 95ac949 commit c6bda02
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 2 additions & 0 deletions src/executor/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$_"`);
}

Expand Down

0 comments on commit c6bda02

Please sign in to comment.