Commit 1dd75242 authored by J0WI's avatar J0WI Committed by Kaarle Ritvanen

main/apk-cron: modernize

parent 73358c47
......@@ -2,22 +2,21 @@
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
pkgname=apk-cron
pkgver=1.0
pkgrel=1
pkgrel=2
pkgdesc="Periodic software updates"
url=http://git.alpinelinux.org/cgit/aports/tree/main/apk-cron
url=https://git.alpinelinux.org/cgit/aports/tree/main/apk-cron
arch=noarch
license=GPL2
depends=apk-tools
source=apk
options="!check"
build() {
:
return
}
package() {
install -D -m 755 "$srcdir/apk" "$pkgdir/etc/periodic/daily/apk"
}
md5sums="5d53149d6eba6e849cb05046ded78f5e apk"
sha256sums="3cad83f2614d4b0fc360310052f28881209d748393f863f9730e36b23432b950 apk"
sha512sums="4f08405f356af61e19063e1b7e8cf7817636e0634a88e9551a4448a6786489dee6f8529b2b661ce96a351ca4773cf6e5a9564dffef9d4046430c7c60a34ff215 apk"
sha512sums="6efad227a5f7f3d4fc0f22496eb37e203e4090f348c9154e3e80ea385a0cfff8240fef1c72d401ae361d73c4bb11110363bfb9ce2c614a6f122989a690e5458b apk"
......@@ -3,5 +3,7 @@
# cron job for automatic software updates
# Copyright (c) 2014 Kaarle Ritvanen
set -eu
sleep $(expr $RANDOM % 7200)
exec apk -U upgrade
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment