diff options
author | ggilestro | 2019-07-02 21:55:50 +0100 |
---|---|---|
committer | ggilestro | 2019-07-02 21:55:50 +0100 |
commit | de3c25a272da639becfd6a772aa7b7f19824bd85 (patch) | |
tree | 1d3026b05f48178be653a17a53f8a9460e83985b /ethoscope-node.install | |
parent | 30ad348429e7f3ba70ec6bfb1b94e8a6ca7b22d7 (diff) | |
download | aur-de3c25a272da639becfd6a772aa7b7f19824bd85.tar.gz |
Changed data directories
Enabled NTP service at install
Stop services at removal
Diffstat (limited to 'ethoscope-node.install')
-rw-r--r-- | ethoscope-node.install | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ethoscope-node.install b/ethoscope-node.install index b38ff9fe767b..f1d0c75f85c6 100644 --- a/ethoscope-node.install +++ b/ethoscope-node.install @@ -18,14 +18,16 @@ 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" - systemctl enable git-daemon.socket + echo "enabling the GIT server on the node and NTP service" + systemctl enable git-daemon.socket ntpd.service #changing hostname on node hostnamectl set-hostname node + + #setting host settings on node echo "127.0.0.1 node" > /etc/hosts - #PLEASE REBOOT NOW. + echo "PLEASE REBOOT NOW." } ## arg 1: the new package version @@ -48,7 +50,9 @@ post_upgrade() { # arg 1: the old package version pre_remove() { echo "disabling systemd service files" + systemctl stop ethoscope_node.service ethoscope_update_node.service ethoscope_backup.service ethoscope_video_backup.service systemctl disable ethoscope_node.service ethoscope_update_node.service ethoscope_backup.service ethoscope_video_backup.service + systemctl stop git-daemon.socket systemctl disable git-daemon.socket } |