Browse Source

add disconnect plug

Joachim M. Giæver 3 years ago
parent
commit
5ce8e1e25e
1 changed files with 6 additions and 0 deletions
  1. 6 0
      scripts/hooks/disconnect-plug-configurations

+ 6 - 0
scripts/hooks/disconnect-plug-configurations

@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+set -e
+snapctl set server.basepath.dir=""
+snapctl set server.basepath.enforce=False
+snapctl get server | $SNAP/bin/update-settings "${SNAP_DATA}/settings.conf" update
+snapctl restart "${SNAP_NAME}.server"