mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-12-23 00:54:26 +01:00
44e87d7cf2
Use Debian stretch packaged gosu, as recommended in the documentation: https://github.com/tianon/gosu/blob/master/INSTALL.md to avoid GPG key issues.
17 lines
193 B
Bash
Executable File
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
|