add the ability to execute a script at the end of the run
This commit is contained in:
parent
22ed04f2b7
commit
d93600ace4
@ -103,6 +103,11 @@ The options are as follows:
|
|||||||
> pkg\_info(1)
|
> pkg\_info(1)
|
||||||
> for more information on fuzzy names.
|
> for more information on fuzzy names.
|
||||||
|
|
||||||
|
*$CWD/commands*
|
||||||
|
|
||||||
|
> An optional file that contains a script that will be executed at the end of
|
||||||
|
> the run.
|
||||||
|
|
||||||
# SEE ALSO
|
# SEE ALSO
|
||||||
|
|
||||||
chmod(1),
|
chmod(1),
|
||||||
|
@ -210,3 +210,11 @@ if [ $MAINTENANCE == 1 ]; then
|
|||||||
msg 0 "installing firmware updates"
|
msg 0 "installing firmware updates"
|
||||||
_ssh ${RUN_USER}@${SERVER} "/usr/sbin/fw_update $V -a"
|
_ssh ${RUN_USER}@${SERVER} "/usr/sbin/fw_update $V -a"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -f ./commands ]; then
|
||||||
|
local _tmp=$(mktemp)
|
||||||
|
rm $_tmp
|
||||||
|
msg 0 "executing 'commands' file"
|
||||||
|
_scp commands "${RUN_USER}@${SERVER}:${_tmp}"
|
||||||
|
_ssh ${RUN_USER}@${SERVER} "chmod +x ${_tmp}; . ${_tmp}"
|
||||||
|
fi
|
||||||
|
@ -97,6 +97,9 @@ Package names should be listed by their fuzzy names.
|
|||||||
See
|
See
|
||||||
.Xr pkg_info 1
|
.Xr pkg_info 1
|
||||||
for more information on fuzzy names.
|
for more information on fuzzy names.
|
||||||
|
.It Pa $CWD/commands
|
||||||
|
An optional file that contains a script that will be executed at the end of
|
||||||
|
the run.
|
||||||
.El
|
.El
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
.Xr chmod 1 ,
|
.Xr chmod 1 ,
|
||||||
|
Loading…
Reference in New Issue
Block a user