summaryrefslogtreecommitdiffstats
path: root/files/slackpkg
diff options
context:
space:
mode:
authorDarren Austin <darren@afterdark.org.uk>2018-09-19 23:18:10 -0500
committerRobby Workman <rworkman@slackware.com>2018-09-19 23:21:58 -0500
commita805617e8160e0a6257d882cec933115806f8bf1 (patch)
tree664b6ecdbbf5efe02e9f95e386dd9b4668955648 /files/slackpkg
parentff0b9ff70a6031e712035e98b1dd2845774cb137 (diff)
downloadslackpkg-a805617e8160e0a6257d882cec933115806f8bf1.tar.xz
Add config option to allow *not* saving .orig configs
When admins choose to allow slackpkg new-config to overwrite currently installed config files with the .new counterparts from an upgraded package, slackpkg has traditionally created backups of the config files first, with the backups being written out with .orig extensions. This commit does not change the default behavior, but it does allow it to be turned off. TLDR: set "ORIG_BACKUPS" to "off" in /etc/slackpkg/slackpkg.conf if you do not wish to have .orig files left over Signed-off-by: Robby Workman <rworkman@slackware.com>
Diffstat (limited to 'files/slackpkg')
-rw-r--r--files/slackpkg8
1 files changed, 8 insertions, 0 deletions
diff --git a/files/slackpkg b/files/slackpkg
index 6786493..52f8c9b 100644
--- a/files/slackpkg
+++ b/files/slackpkg
@@ -178,6 +178,14 @@ while [ -n "$1" ] ; do
ONLY_NEW_DOTNEW=off
shift
;;
+ -orig_backups=on)
+ ORIG_BACKUPS=on
+ shift
+ ;;
+ -orig_backups=off)
+ ORIG_BACKUPS=off
+ shift
+ ;;
-use_includes=on)
USE_INCLUDES=on
shift