33 lines
616 B
Tcsh
33 lines
616 B
Tcsh
#!/bin/csh
|
|
|
|
# Upgrade host packages
|
|
echo ""
|
|
echo "############ UPGRADE HOST PACKAGES ############"
|
|
echo ""
|
|
pkg update && \
|
|
pkg upgrade -y && \
|
|
pkg clean -ya
|
|
|
|
# Upgrade jail packages
|
|
echo ""
|
|
echo "############ UPGRADE JAIL PACKAGES ############"
|
|
foreach jail (`ls /usr/jails | \
|
|
grep -v basejail | \
|
|
grep -v ezjail_archives | \
|
|
grep -v flavours | \
|
|
grep -v newjail | \
|
|
grep -v fulljail`)
|
|
|
|
echo ""
|
|
echo "Updating $jail"
|
|
pkg -j $jail update && \
|
|
pkg -j $jail upgrade -y && \
|
|
pkg -j $jail clean -ay
|
|
|
|
end
|
|
|
|
# Report done
|
|
echo ""
|
|
echo "############### ALL DONE THANKS ###############"
|
|
echo ""
|