File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 1111# @man +
1212# @man *Options*:
1313# @man +
14+ # @man *-p*: just reset the package cache and nothing else
15+ # @man +
1416# @man *-i*: run the agent in information mode, prints basic information
1517# @man +
1618# @man *-q*: run the agent in quiet mode (display only error messages)
@@ -23,7 +25,7 @@ VERBOSITY=""
2325VERBOSE=false
2426QUIET=false
2527
26- while getopts " iIvdqc " opt; do
28+ while getopts " iIvdqcp " opt; do
2729 case $opt in
2830 i|I)
2931 VERBOSITY=" -I ${INFO_CLASS} "
@@ -49,6 +51,12 @@ while getopts "iIvdqc" opt; do
4951 COLOR=" "
5052 clear_colors
5153 ;;
54+ p)
55+ # - remove state
56+ [ " $VERBOSE " = true ] && echo " Resetting package cache..."
57+ rm -f ${RUDDER_VAR} /cfengine-community/state/package_*
58+ exit $?
59+ ;;
5260 esac
5361done
5462
You can’t perform that action at this time.
0 commit comments