summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authordr460nf1r32021-10-15 10:02:39 +0200
committerdr460nf1r32021-10-15 10:02:39 +0200
commitbca29b0bb413b500fd0c9b1ff69f078dea70aede (patch)
tree514ca579ddc866ab7f6ba7e241352b1bf91192c5
parent619d5c78744b7f8900b94a1cb59955ee4ecf44f2 (diff)
downloadaur-bca29b0bb413b500fd0c9b1ff69f078dea70aede.tar.gz
Enable saving of configuration
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD3
-rw-r--r--whoogle2
-rw-r--r--whoogle.install2
4 files changed, 8 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7448239f82ba..664be76f9e70 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = whoogle
pkgdesc = A self-hosted, ad-free, privacy-respecting metasearch engine
pkgver = 0.6.0
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/benbusby/whoogle-search
install = whoogle.install
arch = x86_64
@@ -16,6 +16,6 @@ pkgbase = whoogle
source = whoogle.conf
sha256sums = 034827d32f7acf49bb53bf5c18b5a8a9926e613b7f52d2370cb7ba3d0b33cc10
sha256sums = 7630105a0613d6758f0e298a8d197f307cb2d1657f7cedf10dc340c8f21c4511
- sha256sums = fe3e5b71d2d5cfcaf4a246d7a79f32a19d2240b59e761d59512fef5e711599da
+ sha256sums = 51cda92f3ad2166eb2cb63ff80561f48b39688a57b66291d2eee5e1c7fcd8ee3
pkgname = whoogle
diff --git a/PKGBUILD b/PKGBUILD
index 6be836f7d893..0d7e8037def9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=whoogle
pkgver=0.6.0
-pkgrel=2
+pkgrel=3
pkgdesc='A self-hosted, ad-free, privacy-respecting metasearch engine'
arch=(x86_64 aarch64)
url="https://github.com/benbusby/whoogle-search"
@@ -34,6 +34,7 @@ build() {
}
package() {
+ install -m0644 -D "$srcdir/whoogle" "$pkgdir/etc/default/whoogle"
install -m0644 -D "$srcdir/whoogle.conf" "$pkgdir/usr/lib/sysusers.d/whoogle.conf"
install -m0644 -D "$srcdir/whoogle.service" "$pkgdir/usr/lib/systemd/system/whoogle.service"
install -dm0755 "$pkgdir/opt/whoogle-search"
diff --git a/whoogle b/whoogle
new file mode 100644
index 000000000000..8afe3d359e3e
--- /dev/null
+++ b/whoogle
@@ -0,0 +1,2 @@
+BIND_ADDRESS=127.0.0.1
+LISTEN_PORT=5000
diff --git a/whoogle.install b/whoogle.install
index e590a4bdb628..71cb90996d35 100644
--- a/whoogle.install
+++ b/whoogle.install
@@ -1,4 +1,5 @@
post_install() {
+ chown -R whoogle.whoogle /opt/whoogle-search/app/static/config
systemctl enable --now whoogle
echo ""
echo "Enabled the Whoogle systemd service."
@@ -7,6 +8,7 @@ post_install() {
}
post_upgrade() {
+ chown -R whoogle.whoogle /opt/whoogle-search/app/static/config
systemctl daemon-reload
systemctl restart whoogle
echo "Restarted Whoogle systemd service."