comparison sbin/fjail @ 225:ffd24013d346

When configuring a jail also call "newaliases" within the jail
author Franz Glasner <f.glasner@feldmann-mg.com>
date Wed, 31 Aug 2022 13:04:25 +0200
parents 6713d97b4180
children 73f2436fdf86
comparison
equal deleted inserted replaced
224:6713d97b4180 225:ffd24013d346
367 echo "Copying the host's resolv.conf into the jail" 367 echo "Copying the host's resolv.conf into the jail"
368 cp -p /etc/resolv.conf "${_mp}/etc/resolv.conf" 368 cp -p /etc/resolv.conf "${_mp}/etc/resolv.conf"
369 else 369 else
370 echo "WARNING: \"${_mp}/etc/resolv.conf\" exists already -- not changed" 370 echo "WARNING: \"${_mp}/etc/resolv.conf\" exists already -- not changed"
371 fi 371 fi
372
373 # Call newaliases within the jail
374 chroot "${_mp}" /usr/bin/newaliases
372 375
373 # 376 #
374 # hostid and hostuuid should be set (at least for consistency ressons) 377 # hostid and hostuuid should be set (at least for consistency ressons)
375 # in vnet jails (see /etc/rc.d/hostid and /etc/rc.d/hostid_save). 378 # in vnet jails (see /etc/rc.d/hostid and /etc/rc.d/hostid_save).
376 # They can be set in the jail.conf. 379 # They can be set in the jail.conf.