diff options
author | Bailey Kasin | 2019-08-05 05:58:54 -0700 |
---|---|---|
committer | Bailey Kasin | 2019-08-05 05:58:54 -0700 |
commit | 3cdba0bba9095752479a6e6f518f05331f6966ef (patch) | |
tree | 902d16487a5bb072bddb16ea2ebff2b8989a1e07 /gogios.install | |
parent | 831491188220e625f5004bfbbc3d78e5dc6ef205 (diff) | |
download | aur-3cdba0bba9095752479a6e6f518f05331f6966ef.tar.gz |
Fix current.json creation
Diffstat (limited to 'gogios.install')
-rw-r--r-- | gogios.install | 7 |
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" |