MT#17219 Do not invoke redundant etckeeper from apply action

The commit action already takes care of invoking etckeeper, so there's
no need to call it from the apply action. In addition calling it after
record_commit_id is either pointless or buggy.

Change-Id: I8ccd40f962c24f99b2ae26655c083bb976e47ce9
changes/24/4024/6
Guillem Jover 11 years ago
parent c40fd75eee
commit d0b12d1bbc

@ -78,7 +78,7 @@ usage() {
fi
printf " $PN services [opts] - execute service handlers for modified configuration files
$PN apply - a short-cut for check-build-services-commit-etckeeper
$PN apply - a short-cut for check-build-services-commit
$PN status - display status of configuration file\n\n"
printf "For further usage information and options visit the ngcpcfg manpage.\n"

@ -1,5 +1,5 @@
#!/bin/bash
# Purpose: shortcut for build, services, commit + etckeeper in one run
# Purpose: shortcut for build, services, commit in one run
################################################################################
set -e
@ -47,6 +47,4 @@ fi
# "apply" run let's ensure it's not marked as dirty.
record_commit_id
"${SCRIPTS}"/etckeeper
## END OF FILE #################################################################

Loading…
Cancel
Save