This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/bash | |
# modified for freenas from https://gist.github.com/takeshixx/7487381 | |
SHELL=/usr/local/bin/bash | |
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin | |
JAIL_PORTS=/mnt/jails/ports | |
SECTION=' * * * * * * ' | |
DELIMITER='------------------------------' | |
#updates shared ports dir that is null mounted into each jail | |
#portsnap -p $JAIL_PORTS fetch extract &>/dev/null || echo "Updating ports tree failed!" |