projects
/
fusionforge
/
fusionforge.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0518a3
)
Applied patch [#495] Ensure install-ng is run as root by Marcel Baur
author
Alain Peyrat
<aljeux@free.fr>
Sat, 25 Aug 2012 19:10:45 +0000
(19:10 +0000)
committer
Alain Peyrat
<aljeux@free.fr>
Sat, 25 Aug 2012 19:10:45 +0000
(19:10 +0000)
src/install-ng
patch
|
blob
|
history
diff --git
a/src/install-ng
b/src/install-ng
index 867123294ff19e099b8dfc319fea2f78981ae2ad..3ca293870526333242df4ee5d2b471fca8b11819 100755
(executable)
--- a/
src/install-ng
+++ b/
src/install-ng
@@
-26,6
+26,11
@@
if [ $? != 0 ] ; then echo "Terminating..." >&2 ; usage $0 ;exit 1 ; fi
eval set -- "$options"
+if [[ $EUID -ne 0 ]]; then
+ echo "This script must be run as root" 1>&2
+ exit 1
+fi
+
REINIT=false
AUTO=false