From 698a6ddd862bd652c3d37043e2a0c6902e965a9d Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 6 Dec 2016 15:08:29 +0000 Subject: [PATCH 1/2] Create preferences.xml Default RP location to /ubooquity, default folder mappings for /comics & /books --- defaults/preferences.xml | 46 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 defaults/preferences.xml diff --git a/defaults/preferences.xml b/defaults/preferences.xml new file mode 100644 index 0000000..37fc999 --- /dev/null +++ b/defaults/preferences.xml @@ -0,0 +1,46 @@ + + + + + + /comics + + + + + + /books + + + + + true + true + true + false + 2202 + 160 + 230 + 30 + 160 + 230 + 30 + false + false + 0 + false + Default + false + 1536 + 2400 + + true + ubooquity + + + true + false + + false + false + From 5a8fd1abf7839082409ae61895d882572daf5c04 Mon Sep 17 00:00:00 2001 From: sparklyballs Date: Tue, 6 Dec 2016 15:33:46 +0000 Subject: [PATCH 2/2] implement preferences.xml --- {defaults => root/defaults}/preferences.xml | 0 root/etc/cont-init.d/30-config | 4 ++++ 2 files changed, 4 insertions(+) rename {defaults => root/defaults}/preferences.xml (100%) diff --git a/defaults/preferences.xml b/root/defaults/preferences.xml similarity index 100% rename from defaults/preferences.xml rename to root/defaults/preferences.xml diff --git a/root/etc/cont-init.d/30-config b/root/etc/cont-init.d/30-config index 1b647b0..c1b300e 100644 --- a/root/etc/cont-init.d/30-config +++ b/root/etc/cont-init.d/30-config @@ -4,6 +4,10 @@ mkdir -p \ config/fonts +# copy config +[[ ! -e /config/preferences.xml ]] && \ + cp /defaults/preferences.xml /config/preferences.xml + # permissions chown -R abc:abc \ /config \