projects
/
fusionforge
/
fusionforge.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Applied patch [#495] Ensure install-ng is run as root by Marcel Baur
[fusionforge/fusionforge.git]
/
src
/
install-ng
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