Skip to content

Commit 4ff102d

Browse files
committed
Revert "Try wrapping a script for debugging"
This reverts commit e5068a4.
1 parent 2236001 commit 4ff102d

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

bin/sudo-u.sh

-4
This file was deleted.

cgi-bin/webhook.cgi

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ class PushHook
185185
end
186186

187187
def execute(*cmd, user:)
188-
cmd = ['/home/git/git.ruby-lang.org/bin/sudo-u.sh', user, *cmd]
188+
cmd = ['/usr/bin/sudo', '-u', user, *cmd]
189189
logger.info("+ #{cmd.shelljoin}")
190190
system("#{cmd.shelljoin} >> #{Webhook::LOG_PATH} 2>&1", exception: true)
191191
logger.info("done")

0 commit comments

Comments
 (0)