aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2022-06-18 21:03:21 -0700
committerGravatar Tom Willemse2022-06-18 21:03:21 -0700
commit5c45e8b40a353148aa9dfe308830b394d0ffa18e (patch)
tree800bb97ad1f24915d37992b064743149811157e0
parente882f79e73088a00555a4048b810c0095654051e (diff)
downloadupdate-mirrors-5c45e8b40a353148aa9dfe308830b394d0ffa18e.tar.gz
update-mirrors-5c45e8b40a353148aa9dfe308830b394d0ffa18e.zip
[PKGBUILD] Prevent updating from overwriting the configuration
Adding the ‘config.sh’ to the backup files means that the file doesn't get overwritten when the package is updated.
-rw-r--r--PKGBUILD1
1 files changed, 1 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 0fad072..c258101 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,6 +10,7 @@ source=('config.sh' 'update-mirrors' 'update-mirrors.hook')
md5sums=('f346650dfe6e27c04857fe818e164981'
'bf665ee254c3e6805bc9bb12f5d9cbe1'
'da17120353c50b53f7478f72bbac04e8')
+backup=('etc/xdg/update-mirrors/config.sh')
package() {
install -Dm755 config.sh "${pkgdir}/etc/xdg/update-mirrors/config.sh"