Merge pull request #407 from morphis/f/dont-use-sudo
Don't use sudo in a script executed as root
This commit is contained in:
commit
09bb9342ab
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ start() {
|
|||
$SNAP/bin/anbox-bridge.sh start
|
||||
|
||||
# Ensure FUSE support for user namespaces is enabled
|
||||
echo Y | sudo tee /sys/module/fuse/parameters/userns_mounts || echo "WARNING: kernel doesn't support fuse in user namespaces"
|
||||
echo Y | tee /sys/module/fuse/parameters/userns_mounts || echo "WARNING: kernel doesn't support fuse in user namespaces"
|
||||
|
||||
# Only try to use AppArmor when the kernel has support for it
|
||||
AA_EXEC="$SNAP/usr/sbin/aa-exec -p unconfined --"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue