dockcross/web-wasm/install-gosu-sudo.sh

17 lines
193 B
Bash
Raw Normal View History

#!/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