mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-02-13 11:01:22 -05:00
Prevent installation failures when installing non-interactively
This commit is contained in:
parent
5570d3e5b9
commit
a9e87e9d30
7
debian/security-misc.config
vendored
7
debian/security-misc.config
vendored
@ -55,9 +55,12 @@ check_migrate_permission_hardener_state() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
if [ "${#custom_hardening_arr[@]}" != '0' ]; then
|
if [ "${#custom_hardening_arr[@]}" != '0' ]; then
|
||||||
db_input critical security-misc/alert-on-permission-hardener-v2-upgrade
|
## db_input will return code 30 if the message won't be displayed, which
|
||||||
|
## causes a non-interactive install to error out if you don't use || true
|
||||||
|
db_input critical security-misc/alert-on-permission-hardener-v2-upgrade || true
|
||||||
|
## db_go can return code 30 too in some instances, we don't care here
|
||||||
# shellcheck disable=SC2119
|
# shellcheck disable=SC2119
|
||||||
db_go
|
db_go || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
touch "/var/lib/security-misc/do_once/${FUNCNAME[0]}_version_1"
|
touch "/var/lib/security-misc/do_once/${FUNCNAME[0]}_version_1"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user