summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authornroi2017-04-08 19:53:16 +0200
committernroi2017-04-08 19:57:51 +0200
commit32ce8c0ceab20386a93fbfe91c9cdbe8aaf49686 (patch)
tree518f68385b2d28c5b63eb9683867b0d26b70bb09
parent09e7d06c3c21a06d33b2d1724930858f5832e73d (diff)
downloadaur-32ce8c0ceab20386a93fbfe91c9cdbe8aaf49686.tar.gz
Remove script to create database
Will be done upon first startup.
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD7
-rw-r--r--cpcache.install1
-rwxr-xr-xcreate_db.sh10
4 files changed, 4 insertions, 20 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b2cdce2a7f4..cad4079cdf5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = cpcache-git
pkgdesc = central pacman cache
- pkgver = r121.4160ba4
+ pkgver = r143.f258649
pkgrel = 1
url = https://github.com/nroi/cpcache
install = cpcache.install
@@ -16,12 +16,10 @@ pkgbase = cpcache-git
source = sysuser.conf
source = cpcache.install
source = cpcache.service
- source = create_db.sh
sha256sums = SKIP
sha256sums = 0098e749b19617c0f7d619d47a3bc3015bab62e9ad0916087502daff672fb309
- sha256sums = a6ce949fba102e2f0904622d1f0417be15eee01e76516f80af1aa36a6c8ea312
+ sha256sums = 6bee3cc74af8ba471720cef805895d874b74f8ff9cdba096c517c03d21af77b8
sha256sums = 85c0e0bb6fe4c78c35481fd2f694e223b1d957b59fdc207dad0911bb59bfe765
- sha256sums = 6deb112ac11a43a65891f8dcfa6844ca91c4852b8091e354caeac6afd7e00319
pkgname = cpcache-git
diff --git a/PKGBUILD b/PKGBUILD
index cde7b764a54..190d60c7f80 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: nroi <nroi@mailbox.org>
pkgname=cpcache-git
-pkgver=r123.e61c708
+pkgver=r143.f258649
pkgrel=1
pkgdesc="central pacman cache"
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
@@ -13,13 +13,11 @@ source=('git+https://github.com/nroi/cpcache.git'
'sysuser.conf'
'cpcache.install'
'cpcache.service'
- 'create_db.sh'
)
sha256sums=('SKIP'
'0098e749b19617c0f7d619d47a3bc3015bab62e9ad0916087502daff672fb309'
- 'a6ce949fba102e2f0904622d1f0417be15eee01e76516f80af1aa36a6c8ea312'
+ '6bee3cc74af8ba471720cef805895d874b74f8ff9cdba096c517c03d21af77b8'
'85c0e0bb6fe4c78c35481fd2f694e223b1d957b59fdc207dad0911bb59bfe765'
- '6deb112ac11a43a65891f8dcfa6844ca91c4852b8091e354caeac6afd7e00319'
)
pkgver() {
@@ -42,6 +40,5 @@ package() {
install -Dm644 "${srcdir}/cpcache.service" "${pkgdir}/usr/lib/systemd/system/cpcache.service"
install -Dm644 "${srcdir}/sysuser.conf" "${pkgdir}/usr/lib/sysusers.d/cpcache.conf"
install -Dm644 "${srcdir}/cpcache/conf/cpcache.yaml" "${pkgdir}/etc/cpcache.yaml"
- install -Dm755 "${srcdir}/create_db.sh" "${pkgdir}/usr/share/${pkgname%-git}/create_db.sh"
rm -rf "$TMP"
}
diff --git a/cpcache.install b/cpcache.install
index 486acdc3ea5..78a266e8dc4 100644
--- a/cpcache.install
+++ b/cpcache.install
@@ -6,7 +6,6 @@ post_install() {
mkdir -p /var/cache/cpcache/arm/{aarch64,arm,armv6h,armv7h}/{alarm,aur,community,extra,core}
mkdir -p /var/cache/cpcache/mnesia
chown -R cpcache:cpcache "/var/cache/cpcache"
- su -s /bin/bash cpcache -c /usr/share/cpcache/create_db.sh
}
post_upgrade() {
diff --git a/create_db.sh b/create_db.sh
deleted file mode 100755
index 857cfe9d7d0..00000000000
--- a/create_db.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-CMD=$(cat <<EOF
-:ok = :mnesia.create_schema([node()])
-:ok = :mnesia.start()
-{:atomic, :ok} = :mnesia.create_table(ContentLength, [attributes: [:path, :content_length],
- disc_copies: [node()]])
-EOF
-)
-ELIXIR_ERL_OPTIONS="-sname cpcache -mnesia dir '/var/cache/cpcache/mnesia'" /usr/bin/elixir -e "$CMD"