Don't use sudo in a script executed as root

This commit is contained in:
Simon Fels 2017-08-16 10:17:43 +02:00 committed by Simon Fels
commit 6e94a2bed3

View file

@ -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 --"