From 5f8222efb31392bcfa696f0538fa8c1b04ac1868 Mon Sep 17 00:00:00 2001 From: emilrus Date: Sat, 8 Jul 2017 11:10:29 +0300 Subject: [PATCH] Replace envuidgid with setuidgid and make run files executable (#203) * envuidgid only sets environment variables $UID and $GID causing electrum_server to fail at https://github.com/kyuupichan/electrumx/blob/master/electrumx_server.py#L35-L37 Replaced envuidgid with setuidgit which runs electrum_server with the specified uid/gid * Make run files executable --- contrib/daemontools/log/run | 0 contrib/daemontools/run | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 contrib/daemontools/log/run mode change 100644 => 100755 contrib/daemontools/run diff --git a/contrib/daemontools/log/run b/contrib/daemontools/log/run old mode 100644 new mode 100755 diff --git a/contrib/daemontools/run b/contrib/daemontools/run old mode 100644 new mode 100755 index ccb9d3c..773171b --- a/contrib/daemontools/run +++ b/contrib/daemontools/run @@ -1,3 +1,3 @@ #!/bin/sh echo "Launching ElectrumX server..." -exec 2>&1 envdir ./env /bin/sh -c 'envuidgid $USERNAME python3 $ELECTRUMX' +exec 2>&1 envdir ./env /bin/sh -c 'setuidgid $USERNAME python3 $ELECTRUMX'