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