summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBailey Kasin2019-08-04 04:16:02 -0700
committerBailey Kasin2019-08-04 04:16:02 -0700
commit98e66d6b23ae172aec432dd7c8759ec4d30e43ef (patch)
treeec075d1adead1b47333d30b2d623bb20780a5afb
parent991838ad3a7ab7a67a6c3d1cf8cabcd2dac52086 (diff)
downloadaur-98e66d6b23ae172aec432dd7c8759ec4d30e43ef.tar.gz
Version 1.2
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD4
-rw-r--r--gogios-bin.install7
3 files changed, 12 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 57c17c1f12c1..dc3e599f2c2e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,17 @@
pkgbase = gogios-bin
pkgdesc = Checks to see if required services are still running on important machines.
- pkgver = 1.1
+ pkgver = 1.2
pkgrel = 1
url = https://angrysysadmins.tech
install = gogios-bin.install
arch = x86_64
license = MIT
optdepends = nginx
- noextract = gogios-1.1.deb
+ noextract = gogios-1.2.deb
options = !strip
options = !emptydirs
- source = https://github.com/BKasin/Gogios/releases/download/1.1/gogios-1.1.deb
- sha256sums = 2695f0750522d5730fcdd31193151dfde0dc22483b59772fdab07003947022fd
+ source = https://github.com/BKasin/Gogios/releases/download/1.2/gogios-1.2.deb
+ sha256sums = 119ca80331456c44aced762601e7a32be17ff2c2045d4798826a3d84e8f479cf
pkgname = gogios-bin
diff --git a/PKGBUILD b/PKGBUILD
index af5b7abcfb95..a1ea392ef2bf 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Bailey Kasin <bailey@gingertechnology.net> (https://angrysysadmins.tech)
pkgname=gogios-bin
-pkgver=1.1
+pkgver=1.2
pkgrel=1
pkgdesc="Checks to see if required services are still running on important machines."
arch=('x86_64')
@@ -12,7 +12,7 @@ source=("https://github.com/BKasin/Gogios/releases/download/${pkgver}/gogios-${p
options=('!strip' '!emptydirs')
install=${pkgname}.install
noextract=("gogios-${pkgver}.deb")
-sha256sums=('2695f0750522d5730fcdd31193151dfde0dc22483b59772fdab07003947022fd')
+sha256sums=('119ca80331456c44aced762601e7a32be17ff2c2045d4798826a3d84e8f479cf')
package() {
bsdtar -O -xf gogios-${pkgver}.deb data.tar.xz | bsdtar -C "${pkgdir}" -xJf -
diff --git a/gogios-bin.install b/gogios-bin.install
index b519910e9249..57b690ce5122 100644
--- a/gogios-bin.install
+++ b/gogios-bin.install
@@ -1,13 +1,18 @@
post_install() {
if [ ! -f /etc/gingertechengine/checks.json ]; then
echo "Making default check file"
- mv /etc/gingertechengine/example.json /etc/gingertechengine/checks.json
+ cp /etc/gingertechengine/example.json /etc/gingertechengine/checks.json
fi
if [ ! -f /etc/gingertechengine/gogios.toml ]; then
echo "Making default config"
cp /etc/gingertechengine/gogios.sample.toml /etc/gingertechengine/gogios.toml
fi
+
+ if [ ! -f /opt/gingertechengine/js/current.json ]; then
+ echo "Making current results file"
+ cp /etc/gingertechengine/checks.json /opt/gingertechengine/js/current.json
+ fi
if id "gogios" >/dev/null 2>&1; then
echo "gogios user already exists"