pivpn/files/etc/apk/personal_autoupdate.conf
2022-07-26 15:20:35 +02:00

25 lines
No EOL
752 B
Text
Executable file

#############################################################################################
# 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() {
:
}