diff options
author | Ondrej Kubik <ondrej.kubik@canonical.com> | 2017-11-04 19:20:37 +0000 |
---|---|---|
committer | Ondrej Kubik <ondrej.kubik@canonical.com> | 2018-02-21 22:29:23 +0000 |
commit | 3665a9131c4f0bac07727a5f908905e9a6348535 (patch) | |
tree | df9827d96dc0f36d9c7243b4c03e19cc324ed7f3 /snap/hooks/install | |
parent | f7fe44fcdf56ef5a761924865c6d5869539b6410 (diff) | |
download | wekan-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-x | snap/hooks/install | 12 |
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 + |