From 21f44786fc2d4c09ea340da0cbd020cccc0df169 Mon Sep 17 00:00:00 2001 From: layman Date: Sun, 8 Apr 2018 09:49:30 +0200 Subject: [PATCH] gentooup: only check services if not in chroot --- gentooup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gentooup.sh b/gentooup.sh index 08361dc..686b07c 100755 --- a/gentooup.sh +++ b/gentooup.sh @@ -130,7 +130,7 @@ if [[ $(qlist -I gentoo-sources) != "" ]] ; then emerge "${PORTAGE_OPTIONS[@]}" --deselect gentoo-sources:"${CURRENTKERNELVERSION/"-gentoo"/}" fi -if [[ -n "$(which restart_services)" ]] ; then +if [[ -n "$(which restart_services)" && $CHROOTED == "1" ]] ; then restart_services -l fi echo "Started at $STARTDATE"