summarylogtreecommitdiffstats
path: root/gogios-bin.install
diff options
context:
space:
mode:
Diffstat (limited to 'gogios-bin.install')
-rw-r--r--gogios-bin.install19
1 files changed, 19 insertions, 0 deletions
diff --git a/gogios-bin.install b/gogios-bin.install
new file mode 100644
index 000000000000..9aa0e2a89da8
--- /dev/null
+++ b/gogios-bin.install
@@ -0,0 +1,19 @@
+post_install() {
+ if [ ! -f /etc/gingertechengine/checks.json ]; then
+ echo "Making default check file"
+ mv /etc/gingertechengine/example.json /etc/gingertechengine/checks.json
+ fi
+
+ echo "Start gogios and gogios-web for the system to run."
+}
+
+post_upgrade() {
+ post_install()
+}
+
+pre_remove() {
+ systemctl stop gogios-web
+ systemctl stop gogios
+ systemctl disable gogios-web
+ systemctl disable gogios
+}