diff options
Diffstat (limited to 'scripts/install-system')
-rwxr-xr-x | scripts/install-system | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/install-system b/scripts/install-system index 8993ab10..b48394e7 100755 --- a/scripts/install-system +++ b/scripts/install-system @@ -24,7 +24,12 @@ # # Vyatta system installer script. # -# + +if [ `whoami` != 'root' ] ; then + echo "This script must be run with root privileges." + exit 1 +fi + # If you set VYATTA_AUTO_INSTALL I will try to do an automated install for you if [ -e /etc/default/vyatta ] ; then |