1
0
Fork 0

[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.
This commit is contained in:
Tom Willemse 2022-06-18 21:03:21 -07:00
parent e882f79e73
commit 5c45e8b40a

View file

@ -10,6 +10,7 @@ source=('config.sh' 'update-mirrors' 'update-mirrors.hook')
md5sums=('f346650dfe6e27c04857fe818e164981' md5sums=('f346650dfe6e27c04857fe818e164981'
'bf665ee254c3e6805bc9bb12f5d9cbe1' 'bf665ee254c3e6805bc9bb12f5d9cbe1'
'da17120353c50b53f7478f72bbac04e8') 'da17120353c50b53f7478f72bbac04e8')
backup=('etc/xdg/update-mirrors/config.sh')
package() { package() {
install -Dm755 config.sh "${pkgdir}/etc/xdg/update-mirrors/config.sh" install -Dm755 config.sh "${pkgdir}/etc/xdg/update-mirrors/config.sh"