gentooup: only check services if not in chroot

This commit is contained in:
layman 2018-04-08 09:49:30 +02:00
parent b53a5a1751
commit 21f44786fc

View file

@ -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"