mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-19 19:18:10 +01:00
Allow running as any user
This commit is contained in:
@@ -1,11 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Check if the script is being run as root
|
||||
if [ "$(id -u)" -ne 0 ]; then
|
||||
echo "This script must be run as root or with sudo."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Function to show the current timezone using two alternative methods
|
||||
show_timezone() {
|
||||
if [ -f /data/timezone ]; then
|
||||
|
||||
Reference in New Issue
Block a user