#
# Cron
#
-verbose "Install /etc/cron.d/nb"
-$install "$NB_ROOT/etc/cron/nb" /etc/cron.d/nb
+if [ -d /etc/cron.d ]; then
+ verbose "Install /etc/cron.d/nb"
+ $install "$NB_ROOT/etc/cron/nb" /etc/cron.d/nb
+fi
#
# Profile
#
-verbose "Install /etc/profile.d/nb-profile.sh"
-echo "[ -r $NB_ROOT/etc/profile.sh ] && . $NB_ROOT/etc/profile.sh" > /tmp/nb-profile.sh \
- && $install -c /tmp/nb-profile.sh /etc/profile.d/nb-profile.sh \
- && chmod 755 /etc/profile.d/nb-profile.sh \
-;
+if [ -d /etc/profile.d ]; then
+ verbose "Install /etc/profile.d/nb-profile.sh"
+ echo "[ -r $NB_ROOT/etc/profile.sh ] && . $NB_ROOT/etc/profile.sh" > /tmp/nb-profile.sh \
+ && $install -c /tmp/nb-profile.sh /etc/profile.d/nb-profile.sh \
+ && chmod 755 /etc/profile.d/nb-profile.sh \
+ ;
-rm -f /tmp/nb-profile.sh
+ rm -f /tmp/nb-profile.sh
+fi