Allow running as any user

This commit is contained in:
Alexandre
2024-10-07 09:50:46 +02:00
committed by GitHub
parent 28d8b2346e
commit 1b481f844e

View File

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