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]