summarylogtreecommitdiffstats
path: root/ethoscope-node.install
diff options
context:
space:
mode:
authorggilestro2019-06-24 17:23:38 +0100
committerggilestro2019-06-24 17:23:38 +0100
commit803068c6a741280a796c1456d3217a0f07fb7d33 (patch)
tree8ab20d8f7e9ae7ec1e6ff5461f25f8d1d67c4d02 /ethoscope-node.install
downloadaur-803068c6a741280a796c1456d3217a0f07fb7d33.tar.gz
first package commit
Diffstat (limited to 'ethoscope-node.install')
-rw-r--r--ethoscope-node.install49
1 files changed, 49 insertions, 0 deletions
diff --git a/ethoscope-node.install b/ethoscope-node.install
new file mode 100644
index 00000000000..f72c68cce20
--- /dev/null
+++ b/ethoscope-node.install
@@ -0,0 +1,49 @@
+## arg 1: the new package version
+#pre_install() {
+ # do something here
+#}
+
+# arg 1: the new package version
+post_install() {
+ echo "changing the remote GIT source to local BARE created during installation"
+ cd /opt/ethoscope-node
+ git remote set-url origin /srv/git/ethoscope.git
+
+ #setting branch
+ git checkout python3.7
+
+ echo "enabling NODE specific systemd service files"
+ systemctl enable ethoscope_node.service ethoscope_update_node.service ethoscope_backup.service ethoscope_video_backup.service
+ echo "enabling the GIT server on the node"
+ systemctl enable git-daemon.socket
+}
+
+## arg 1: the new package version
+## arg 2: the old package version
+#pre_upgrade() {
+ # do something here
+#}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+ echo "changing the remote GIT source to local BARE created during installation"
+ cd /opt/ethoscope-node
+ git remote set-url origin /srv/git/ethoscope.git
+
+ #setting branch
+ git checkout python3.7
+}
+
+# arg 1: the old package version
+pre_remove() {
+ echo "disabling systemd service files"
+ systemctl disable ethoscope_node.service ethoscope_update_node.service ethoscope_backup.service ethoscope_video_backup.service
+ systemctl disable git-daemon.socket
+
+}
+
+## arg 1: the old package version
+#post_remove() {
+ # do something here
+#}