diff options
author | dr460nf1r3 | 2021-10-15 10:02:39 +0200 |
---|---|---|
committer | dr460nf1r3 | 2021-10-15 10:02:39 +0200 |
commit | bca29b0bb413b500fd0c9b1ff69f078dea70aede (patch) | |
tree | 514ca579ddc866ab7f6ba7e241352b1bf91192c5 | |
parent | 619d5c78744b7f8900b94a1cb59955ee4ecf44f2 (diff) | |
download | aur-bca29b0bb413b500fd0c9b1ff69f078dea70aede.tar.gz |
Enable saving of configuration
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 3 | ||||
-rw-r--r-- | whoogle | 2 | ||||
-rw-r--r-- | whoogle.install | 2 |
4 files changed, 8 insertions, 3 deletions
@@ -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 @@ -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." |