Skip to content

Commit

Permalink
add new usability wrapper /usr/bin/dpkg-noninteractive
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Schleizer committed Feb 13, 2020
1 parent 63f96f9 commit b3d775e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions usr/bin/dpkg-noninteractive
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

## Copyright (C) 2012 - 2018 ENCRYPTED SUPPORT LP <[email protected]>
## See the file COPYING for copying conditions.

set -e

[ -n "$POLICYRCD" ] || POLICYRCD="/usr/share/usability-misc/policy-rc.d"
[ -n "$DEBIAN_FRONTEND" ] || DEBIAN_FRONTEND="noninteractive"
[ -n "$DEBIAN_PRIORITY" ] || DEBIAN_PRIORITY="critical"
[ -n "$DEBCONF_NOWARNINGS" ] || DEBCONF_NOWARNINGS="yes"
[ -n "$APT_LISTCHANGES_FRONTEND" ] || APT_LISTCHANGES_FRONTEND="text"
export POLICYRCD DEBIAN_FRONTEND DEBIAN_PRIORITY DEBCONF_NOWARNINGS APT_LISTCHANGES_FRONTEND

dpkg --force-confnew "$@"

0 comments on commit b3d775e

Please sign in to comment.