Skip to content

Commit 1aa19f4

Browse files
authored
Merge pull request #840 from linuxserver/transmission-floodui-persistent
transmission-floodui: make config persistent
2 parents d39098e + 613465a commit 1aa19f4

File tree

2 files changed

+13
-3
lines changed
  • root/etc/s6-overlay/s6-rc.d/init-mod-transmission-floodui-install

2 files changed

+13
-3
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
FROM ghcr.io/linuxserver/baseimage-alpine:3.17 as buildstage
3+
FROM ghcr.io/linuxserver/baseimage-alpine:3.19 as buildstage
44

55
ARG MOD_VERSION
66

@@ -16,7 +16,8 @@ RUN \
1616
mkdir -p /root-layer/themes/flood-for-transmission && \
1717
tar xzf \
1818
/tmp/flood.tar.gz -C \
19-
/root-layer/themes/flood-for-transmission --strip-components=1
19+
/root-layer/themes/flood-for-transmission --strip-components=1 && \
20+
ln -s /config/themes/flood-for-transmission/config.json /root-layer/themes/flood-for-transmission/config.json
2021

2122
# copy local files
2223
COPY root/ /root-layer/
Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
#!/usr/bin/with-contenv bash
22
# shellcheck shell=bash
33

4+
mkdir -p /config/themes/flood-for-transmission
5+
if [ ! -f /config/themes/flood-for-transmission/config.json ]; then
6+
cp /themes/flood-for-transmission/config.json.defaults /config/themes/flood-for-transmission/config.json
7+
fi
8+
# Keep an up-to-date copy of the defaults in case there are breaking changes to the config.json and the user needs to manually update
9+
cp /themes/flood-for-transmission/config.json.defaults /config/themes/flood-for-transmission/config.json.defaults
10+
411
printf "/themes/flood-for-transmission" > /var/run/s6/container_environment/TRANSMISSION_WEB_HOME
512

6-
lsiown -R abc:abc /themes
13+
lsiown -R abc:abc \
14+
/themes \
15+
/config/themes/flood-for-transmission

0 commit comments

Comments
 (0)