summaryrefslogtreecommitdiffstats
path: root/snap/hooks/install
diff options
context:
space:
mode:
authorOndrej Kubik <ondrej.kubik@canonical.com>2017-11-04 19:20:37 +0000
committerOndrej Kubik <ondrej.kubik@canonical.com>2018-02-21 22:29:23 +0000
commit3665a9131c4f0bac07727a5f908905e9a6348535 (patch)
treedf9827d96dc0f36d9c7243b4c03e19cc324ed7f3 /snap/hooks/install
parentf7fe44fcdf56ef5a761924865c6d5869539b6410 (diff)
downloadwekan-3665a9131c4f0bac07727a5f908905e9a6348535.tar.gz
wekan-3665a9131c4f0bac07727a5f908905e9a6348535.tar.bz2
wekan-3665a9131c4f0bac07727a5f908905e9a6348535.zip
splitting hooks and using snapctl instead of local settings file
Signed-off-by: Ondrej Kubik <ondrej.kubik@canonical.com>
Diffstat (limited to 'snap/hooks/install')
-rwxr-xr-xsnap/hooks/install12
1 files changed, 12 insertions, 0 deletions
diff --git a/snap/hooks/install b/snap/hooks/install
new file mode 100755
index 00000000..14087eaa
--- /dev/null
+++ b/snap/hooks/install
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+exec >> $SNAP_COMMON/hook.log 2>&1
+echo "$(date '+%Y-%m-%d %H:%M:%S') $0: Entering hook"
+
+# coppy caddy file in place
+[ ! -e $SNAP_COMMON/Caddyfile ] && cp $SNAP/Caddyfile $SNAP_COMMON/Caddyfile
+
+# create run dir, we're going to use it for unix socket
+mkdir -p $SNAP_DATA/share
+mkdir -p $SNAP_DATA/shared
+