diff options
Diffstat (limited to 'bin/reconfigure')
-rwxr-xr-x | bin/reconfigure | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/reconfigure b/bin/reconfigure index 7e49f00..af94f48 100755 --- a/bin/reconfigure +++ b/bin/reconfigure @@ -62,6 +62,13 @@ done shift $((OPTIND - 1)) +if [ "$(id -un)" = 'root' ]; then + printf 'This script must *not* be run as root.\n\n' >&2 + usage >&2 + exit 2 +fi + + HOSTNAME="$(hostname)" if [ -e /run/current-system/configuration.scm ]; then |