Update packages when run in maint mode

This commit is contained in:
Aaron Bieber 2019-10-21 21:29:51 -06:00
parent 7ba5d3ccfc
commit ff6597b832
Signed by: qbit
GPG Key ID: 279160AB1BE1236B
3 changed files with 10 additions and 4 deletions

View File

@ -49,8 +49,10 @@ The options are as follows:
> Run maintenance tasks.
> This includes deleting unused dependencies using
> pkg\_delete(1).
> And installing / updating firmware using
> fw\_update(1).
> And installing / updating packages and firmware using
> fw\_update(1)
> and
> pkg\_add(1).
**-n**

View File

@ -289,6 +289,8 @@ fi
if [ $MAINTENANCE == 1 ]; then
msg 0 "cleaning up unused packages"
_ssh ${RUN_USER}@${SERVER} "/usr/sbin/pkg_delete $V -a"
msg 0 "updating installed packages"
_ssh ${RUN_USER}@${SERVER} "/usr/sbin/pkg_add $V -u"
msg 0 "installing firmware updates"
_ssh ${RUN_USER}@${SERVER} "/usr/sbin/fw_update $V -a"
fi

View File

@ -55,8 +55,10 @@ This skips the 'intelligent' diff and service restart mode.
Run maintenance tasks.
This includes deleting unused dependencies using
.Xr pkg_delete 1 .
And installing / updating firmware using
.Xr fw_update 1 .
And installing / updating packages and firmware using
.Xr fw_update 1
and
.Xr pkg_add 1 .
.It Fl n
Dry run.
This will only print the commands that will be run.