Update packages when run in maint mode
This commit is contained in:
parent
7ba5d3ccfc
commit
ff6597b832
@ -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**
|
||||
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user