pivpn/files/etc/apk/personal_autoupdate.conf

25 lines
752 B
Text
Raw Normal View History

2022-07-26 13:20:35 +00:00
#############################################################################################
# Filename: files/etc/apk/personal_autoupdate.conf #
# Purpose: Configuration file for apk-autoupdate that override the default configs #
# Authors: Giulio Coa <34110430+giulioc008@users.noreply.github.com> #
# License: This file is licensed under the MIT. #
#############################################################################################
can_upgrade() {
case_match "${_packages_blacklist}" "$1" && return 1
case "$1" in
apk-tools)
_apk --quiet --no-cache --simulate upgrade --self-upgrade-only "$1"
;;
*)
_apk --quiet --no-cache --simulate add --upgrade "$1"
;;
esac
return 0
}
finalize() {
:
}