From d13a8aa51a06c183998eb46b67525d5943a674c1 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Fri, 18 May 2018 15:24:51 +0200 Subject: [PATCH] Forcing lightweight build to be installed as a normal user Change-Id: I23529d8b3a294ca5fbe23bec4b51fa7c3fbfe258 Signed-off-by: garciadeblas --- installers/full_install_osm.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/installers/full_install_osm.sh b/installers/full_install_osm.sh index b22b9e28..ffd4a274 100755 --- a/installers/full_install_osm.sh +++ b/installers/full_install_osm.sh @@ -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 -- 2.25.1