Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kylehuynh205 committed Oct 9, 2021
1 parent 198f410 commit 5194b8a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions advancedqueue_runner.module
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,18 @@ function advancedqueue_runner_theme() {
];
}

/**
* Implements hook_install().
*/
function advancedqueue_runner_install() {
// to resolve https://github.com/digitalutsc/advanced-queue-runner/issues/2
if (empty(getenv('HOME'))) {
if (!empty(posix_getpwuid(posix_getuid()))) {
putenv("HOME=".posix_getpwuid(posix_getuid())['dir']);
}
}
}

/**
* Debug function: display any variable to error log
*
Expand Down

0 comments on commit 5194b8a

Please sign in to comment.