diff options
author | Giorgio Gilestro | 2020-10-29 14:57:49 +0000 |
---|---|---|
committer | Giorgio Gilestro | 2020-10-29 14:57:49 +0000 |
commit | 6e2f86f603a41e42705c2d3ab419dc9312ba4f51 (patch) | |
tree | b4b90cd90985b905d7ffe714f22f8b64c1324b0f | |
parent | b22872b1828e99623cc20650c223a0f36127ce4e (diff) | |
download | aur-6e2f86f603a41e42705c2d3ab419dc9312ba4f51.tar.gz |
move some activity from install to PKGBUILD where it belongs. Also, installing dev by default
-rw-r--r-- | ethoscope-node.install | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/ethoscope-node.install b/ethoscope-node.install index 32ceb3e08b73..326b52dda1fc 100644 --- a/ethoscope-node.install +++ b/ethoscope-node.install @@ -5,12 +5,12 @@ # 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 + #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 + git checkout dev #installing python module cd /opt/ethoscope-node/node_src/ @@ -19,8 +19,8 @@ post_install() { 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 and NTP service" - systemctl enable git-daemon.socket ntpd.service avahi-daemon.service - + systemctl enable git-daemon.socket ntpd.service + #changing hostname on node hostnamectl set-hostname node @@ -44,7 +44,7 @@ post_upgrade() { git remote set-url origin /srv/git/ethoscope.git #setting branch - git checkout python3.7 + git checkout dev } # arg 1: the old package version @@ -61,5 +61,6 @@ pre_remove() { post_remove() { #removes the git directorie just in case rm -rf /opt/ethoscope-node + rm -rf /opt/ethoscope-updater rm -rf /srv/git/ethoscope.git } |