summarylogtreecommitdiffstats
path: root/gogios.install
diff options
context:
space:
mode:
authorBailey Kasin2019-08-05 05:58:54 -0700
committerBailey Kasin2019-08-05 05:58:54 -0700
commit3cdba0bba9095752479a6e6f518f05331f6966ef (patch)
tree902d16487a5bb072bddb16ea2ebff2b8989a1e07 /gogios.install
parent831491188220e625f5004bfbbc3d78e5dc6ef205 (diff)
downloadaur-3cdba0bba9095752479a6e6f518f05331f6966ef.tar.gz
Fix current.json creation
Diffstat (limited to 'gogios.install')
-rw-r--r--gogios.install7
1 files changed, 6 insertions, 1 deletions
diff --git a/gogios.install b/gogios.install
index b65fc5040178..01075ea27efa 100644
--- a/gogios.install
+++ b/gogios.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"