Forcing lightweight build to be installed as a normal user 77/6177/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 18 May 2018 13:24:51 +0000 (15:24 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 18 May 2018 13:24:51 +0000 (15:24 +0200)
Change-Id: I23529d8b3a294ca5fbe23bec4b51fa7c3fbfe258
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
installers/full_install_osm.sh

index b22b9e2..ffd4a27 100755 (executable)
@@ -650,6 +650,7 @@ function deploy_perfmon() {
 }
 
 function install_lightweight() {
+    [ "$USER" == "root" ] && FATAL "You are running the installer as root. The installer is prepared to be executed as a normal user with sudo privileges."
     echo "Installing lightweight build of OSM"
     LWTEMPDIR="$(mktemp -d -q --tmpdir "installosmlight.XXXXXX")"
     trap 'rm -rf "${LWTEMPDIR}"' EXIT