From 71b20a5df99b8c2bcadfdda9ae3256d71d3e894e Mon Sep 17 00:00:00 2001 From: aptalca Date: Tue, 5 Apr 2022 14:33:23 -0400 Subject: [PATCH] move sync folder to /config --- Dockerfile | 2 ++ Dockerfile.aarch64 | 4 +++- Dockerfile.armhf | 4 +++- README.md | 1 + readme-vars.yml | 1 + root/etc/cont-init.d/30-config | 2 +- 6 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9e165e3..b179b9d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,6 +37,8 @@ RUN \ npm link && \ echo "**** cleanup ****" && \ npm cache clean --force && \ + rm -rf /opt/mstream/save/sync && \ + ln -s /config/sync /opt/mstream/save/sync && \ apk del --purge \ build-dependencies && \ rm -rf \ diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index f31c85b..19f126e 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -37,6 +37,8 @@ RUN \ npm link && \ echo "**** cleanup ****" && \ npm cache clean --force && \ + rm -rf /opt/mstream/save/sync && \ + ln -s /config/sync /opt/mstream/save/sync && \ apk del --purge \ build-dependencies && \ rm -rf \ @@ -47,4 +49,4 @@ COPY root/ / # ports and volumes EXPOSE 3000 -VOLUME /config /music \ No newline at end of file +VOLUME /config /music diff --git a/Dockerfile.armhf b/Dockerfile.armhf index d12b500..2f392e4 100644 --- a/Dockerfile.armhf +++ b/Dockerfile.armhf @@ -37,6 +37,8 @@ RUN \ npm link && \ echo "**** cleanup ****" && \ npm cache clean --force && \ + rm -rf /opt/mstream/save/sync && \ + ln -s /config/sync /opt/mstream/save/sync && \ apk del --purge \ build-dependencies && \ rm -rf \ @@ -47,4 +49,4 @@ COPY root/ / # ports and volumes EXPOSE 3000 -VOLUME /config /music \ No newline at end of file +VOLUME /config /music diff --git a/README.md b/README.md index f0f2440..06b83a6 100644 --- a/README.md +++ b/README.md @@ -231,6 +231,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64 ## Versions +* **05.04.22:** - Move `sync` folder to `/config`. * **02.04.22:** - Rebase to alpine 3.15. Fix ffmpeg download. * **17.05.21:** - Deprecating the env vars `USER`, `PASSWORD` and `USE_JSON` as mStream v5 requires the use of `config.json`. * **23.01.21:** - Rebasing to alpine 3.13. diff --git a/readme-vars.yml b/readme-vars.yml index 9973f54..d50c509 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -37,6 +37,7 @@ app_setup_block: | # changelog changelogs: + - { date: "05.04.22:", desc: "Move `sync` folder to `/config`." } - { date: "02.04.22:", desc: "Rebase to alpine 3.15. Fix ffmpeg download." } - { date: "17.05.21:", desc: "Deprecating the env vars `USER`, `PASSWORD` and `USE_JSON` as mStream v5 requires the use of `config.json`." } - { date: "23.01.21:", desc: "Rebasing to alpine 3.13." } diff --git a/root/etc/cont-init.d/30-config b/root/etc/cont-init.d/30-config index 8060435..62e67f1 100644 --- a/root/etc/cont-init.d/30-config +++ b/root/etc/cont-init.d/30-config @@ -2,7 +2,7 @@ # make folders mkdir -p \ - /config/{album-art,db,logs} + /config/{album-art,db,logs,sync} # copy config.json if doesn't exist [[ ! -e /config/config.json ]] && \