mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-28 10:16:06 +02:00
Allow running as any user
This commit is contained in:
@@ -1,11 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/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
|
# Function to show the current timezone using two alternative methods
|
||||||
show_timezone() {
|
show_timezone() {
|
||||||
if [ -f /data/timezone ]; then
|
if [ -f /data/timezone ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user