From c1793ad158402de6d4141bf0cca8cf7d9c98f517 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Thu, 16 May 2019 07:59:33 +0200 Subject: [PATCH] Removed unused install hook, removed redundant code from configure hook --- snap/hooks/configure | 3 --- snap/hooks/install | 5 ----- snap/snapcraft.yaml | 2 -- 3 files changed, 10 deletions(-) delete mode 100644 snap/hooks/install diff --git a/snap/hooks/configure b/snap/hooks/configure index ce88cc20..ff4f8047 100644 --- a/snap/hooks/configure +++ b/snap/hooks/configure @@ -1,6 +1,3 @@ #!/bin/sh -e -listen_port="$(snapctl get novncsvc.listen-port)" -vnc_host_port="$(snapctl get novncsvc.vnc-host-port)" - snapctl restart novnc.novncsvc diff --git a/snap/hooks/install b/snap/hooks/install deleted file mode 100644 index bc71e91e..00000000 --- a/snap/hooks/install +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -e - -# Initialise settings to blank default values so that novncsvc won't start unless the user sets these values to something meaningful -snapctl set novncsvc.listen-port=0 -snapctl set novncsvc.vnc-host-port='' diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 7b2599ed..e21ef6e5 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -21,8 +21,6 @@ parts: - python3-numpy hooks: - install: - plugs: [network, network-bind] configure: plugs: [network, network-bind]