dockcross/web-wasm/install-gosu-sudo.sh
Matt McCormick 44e87d7cf2
web-wasm: Bump Emscripten to 1.38.24
Use Debian stretch packaged gosu, as recommended in the documentation:

  https://github.com/tianon/gosu/blob/master/INSTALL.md

to avoid GPG key issues.
2019-01-20 20:42:41 -05:00

17 lines
193 B
Bash
Executable File

#!/usr/bin/env bash
# verify that the binary works
gosu nobody true
cat << EOF >> /usr/bin/sudo
#!/bin/sh
# Emulate the sudo command
exec gosu root:root "\$@"
EOF
chmod +x /usr/bin/sudo