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
This commit is contained in:
emilrus 2017-07-08 11:10:29 +03:00 committed by Neil
parent e7cf5e5d31
commit 5f8222efb3
2 changed files with 1 additions and 1 deletions

0
contrib/daemontools/log/run Normal file → Executable file
View File

2
contrib/daemontools/run Normal file → Executable file
View File

@ -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'