security-server: Prevent running ldconfig or systemctl if...
This should be executed on system and not on build host.
Note It might worth to rewrite all recipes that involve systemd
and inherit systemd class when possible (check how for user sessions).
Without this change,
bitbake tries to run ldconfig on host instead
and then complains (but not fail !) about permission issue like :
/sbin/ldconfig.real: \
Can't create temporary cache file /etc/ld.so.cache~: \
Permission denied
Note, "or condition" is prefered because of shell's -e option.
Change-Id: Ib519697d4df1b9754e34ba030eb5b4ebf8c3ad92
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>