From e7e486884797f6143a48ab5361ce7401d7e56f10 Mon Sep 17 00:00:00 2001 From: Ondrej Kubik Date: Sat, 21 Sep 2024 16:47:04 +0000 Subject: [PATCH] Add snap install hook to seed default config Signed-off-by: Ondrej Kubik --- build-aux/snap/hooks/install | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 build-aux/snap/hooks/install diff --git a/build-aux/snap/hooks/install b/build-aux/snap/hooks/install new file mode 100755 index 0000000..bf10a8b --- /dev/null +++ b/build-aux/snap/hooks/install @@ -0,0 +1,6 @@ +#!/bin/sh + +# copy default config to editable location +mkdir -p ${SNAP_COMMON}/etc/ddclient +cp ${SNAP}/etc/ddclient/ddclient.conf ${SNAP_COMMON}/etc/ddclient/ddclient.conf +chmod 600 ${SNAP_COMMON}/etc/ddclient/ddclient.conf