mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
execute script directly
This commit is contained in:
parent
477d59a3f8
commit
f75ff56785
@ -15,11 +15,8 @@ export const githubWebhook = async (req: any, res: any): Promise<void> => {
|
||||
if (payload.ref === `refs/heads/${CONFIG.WEBHOOK_GITHUB_BRANCH}`) {
|
||||
// spawn shell and detach process to allow killing of parent process in the update script
|
||||
const child = spawn(
|
||||
'/bin/bash',
|
||||
[
|
||||
path.join(__dirname, '../../../deployment/bare_metal/start.sh'),
|
||||
CONFIG.WEBHOOK_GITHUB_BRANCH,
|
||||
],
|
||||
path.join(__dirname, '../../../deployment/bare_metal/start.sh'),
|
||||
[CONFIG.WEBHOOK_GITHUB_BRANCH],
|
||||
{
|
||||
detached: true,
|
||||
stdio: ['ignore', 'ignore', 'ignore'],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user