mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-24 13:50:16 +00:00
25 lines
No EOL
752 B
Text
Executable file
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() {
|
|
:
|
|
} |