use hardlinks when possible

This commit is contained in:
Matthew Saunders Brown 2023-08-31 11:26:59 -07:00
parent 072cfaba90
commit ff41d465ec

View File

@ -53,8 +53,8 @@ for jail in "${!jails[@]}"
do do
jail=${jails[$jail]} jail=${jails[$jail]}
echo "updating $jail" echo "updating $jail"
/usr/sbin/jk_update -j /usr/jails/$jail /usr/sbin/jk_update -k -j /usr/jails/$jail
/usr/sbin/jk_update -j /usr/jails/$jail /lib64/ /usr/sbin/jk_update -k -j /usr/jails/$jail /lib64/
/usr/sbin/jk_update -s /etc/passwd -s /etc/group -s /etc/ld.so.cache -j /usr/jails/$jail /etc/ /usr/sbin/jk_update -k -s /etc/passwd -s /etc/group -s /etc/ld.so.cache -j /usr/jails/$jail /etc/
/sbin/ldconfig.real -r /usr/jails/$jail /sbin/ldconfig.real -r /usr/jails/$jail
done done