9 lines
133 B
Bash
9 lines
133 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
if [[ "$EUID" -ne 0 ]]; then
|
||
|
>&2 echo "fail: you are not root"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
systemctl restart gdm.service
|