[Fai-commit] r3151 - trunk/bin
fai-repository at svn.debian.org
fai-repository at svn.debian.org
Mon Dec 5 18:02:05 UTC 2005
Author: lange
Date: 2005-12-05 18:02:05 +0000 (Mon, 05 Dec 2005)
New Revision: 3151
Modified:
trunk/bin/fai
Log:
test if fai is run as root
Modified: trunk/bin/fai
===================================================================
--- trunk/bin/fai 2005-12-05 17:27:47 UTC (rev 3150)
+++ trunk/bin/fai 2005-12-05 18:02:05 UTC (rev 3151)
@@ -236,6 +236,11 @@
esac
done
+if [ `id -u` -ne 0 ]; then
+ echo "Run this program as root."
+ exit 1
+fi
+
fai_init
lpipe=$LOGDIR/logfifo
More information about the Fai-commit
mailing list