mirror of
https://github.com/samply/bridgehead.git
synced 2025-07-12 02:40:21 +02:00
13 lines
165 B
Bash
13 lines
165 B
Bash
#!/bin/bash -e
|
|
|
|
exitIfNotRoot() {
|
|
if [ "$EUID" -ne 0 ]; then
|
|
echo "Please run as root"
|
|
exit 1
|
|
fi
|
|
}
|
|
|
|
log() {
|
|
echo "$(date +'%Y-%m-%d %T')" "$1:" "$2"
|
|
}
|