From: garciadeblas Date: Fri, 18 May 2018 13:24:51 +0000 (+0200) Subject: Forcing lightweight build to be installed as a normal user X-Git-Tag: v4.0.0~3 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F77%2F6177%2F1;p=osm%2Fdevops.git Forcing lightweight build to be installed as a normal user Change-Id: I23529d8b3a294ca5fbe23bec4b51fa7c3fbfe258 Signed-off-by: garciadeblas --- 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