Skip to content

Commit

Permalink
Replace envuidgid with setuidgid and make run files executable (kyuup…
Browse files Browse the repository at this point in the history
…ichan#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
  • Loading branch information
emilrus authored and Neil committed Jul 8, 2017
1 parent e7cf5e5 commit 5f8222e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Empty file modified contrib/daemontools/log/run
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion contrib/daemontools/run
100644 → 100755
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit 5f8222e

Please sign in to comment.