From 501777d40b4668405d402996dde4756b22274b81 Mon Sep 17 00:00:00 2001 From: Erreur32 Date: Mon, 31 Jul 2017 16:27:03 +0200 Subject: [PATCH] modif install --- bin/motds32 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/motds32 b/bin/motds32 index f89fb14..a3d4a8f 100755 --- a/bin/motds32 +++ b/bin/motds32 @@ -10,8 +10,11 @@ # Copyright 2013 Pavol Krigler # - +if [[ $EUID -ne 0 ]]; then + echo "Need root" 1>&2 /etc/motds32/Stats32 > /etc/motds32/Stats32.txt +fi + # Path to the configuration file CONFIGFILE="/etc/motds32/motds32.conf"