mirror of
https://github.com/unraid/webgui.git
synced 2026-05-07 12:51:21 -05:00
Update tailscale_container_hook
- Add check if script runs as `root`
This commit is contained in:
@@ -29,6 +29,11 @@ echo
|
||||
echo "Executing Unraid Docker Hook for Tailscale"
|
||||
echo
|
||||
|
||||
if [ "$(id -u)" != "0" ]; then
|
||||
echo "ERROR: No root privileges!"
|
||||
error_handler
|
||||
fi
|
||||
|
||||
if [ ! -f /usr/bin/tailscale ] || [ ! -f /usr/bin/tailscaled ]; then
|
||||
if [ ! -z "${TAILSCALE_EXIT_NODE_IP}" ]; then
|
||||
if [ ! -c /dev/net/tun ]; then
|
||||
|
||||
Reference in New Issue
Block a user