parent
c3fa5d1217
commit
b1cf562bb9
|
@ -46,7 +46,7 @@ systemd_cat_config() {
|
||||||
|
|
||||||
check_if_running_as_root() {
|
check_if_running_as_root() {
|
||||||
# If you want to run as another user, please modify $UID to be owned by this user
|
# If you want to run as another user, please modify $UID to be owned by this user
|
||||||
if [[ "$UID" -ne '0' ]]; then
|
if [[ "$EUID" -ne '0' ]]; then
|
||||||
echo "error: You must run this script as root!"
|
echo "error: You must run this script as root!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue