Shell function to update ports for all FreeBSD jails
Lists all jails using jls, filters output to return just jail ID's and execute portmaster via jexec for all returned jail ID's.
jup() { for jid in $(jls | cut -d ' ' -f5-6 | sed 1d); do sudo jexec $jid portmaster -a; done }
Written by Goran
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#