mirror of
https://github.com/linuxserver/docker-transmission.git
synced 2025-11-02 01:35:47 +01:00
Merge pull request #99 from linuxserver/blocklist
internalize blocklist-update.sh
This commit is contained in:
@@ -4,7 +4,7 @@ FROM lsiobase/alpine:3.11
|
|||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||||||
LABEL maintainer="sparklyballs"
|
LABEL maintainer="aptalca"
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
echo "**** install packages ****" && \
|
echo "**** install packages ****" && \
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ FROM lsiobase/alpine:arm64v8-3.11
|
|||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||||||
LABEL maintainer="sparklyballs"
|
LABEL maintainer="aptalca"
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
echo "**** install packages ****" && \
|
echo "**** install packages ****" && \
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ FROM lsiobase/alpine:arm32v7-3.11
|
|||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||||||
LABEL maintainer="sparklyballs"
|
LABEL maintainer="aptalca"
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
echo "**** install packages ****" && \
|
echo "**** install packages ****" && \
|
||||||
|
|||||||
@@ -242,6 +242,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
|
|||||||
|
|
||||||
## Versions
|
## Versions
|
||||||
|
|
||||||
|
* **30.03.20:** - Internalize blocklist-update.sh.
|
||||||
* **29.03.20:** - Update auth info in readme.
|
* **29.03.20:** - Update auth info in readme.
|
||||||
* **19.12.19:** - Rebasing to alpine 3.11.
|
* **19.12.19:** - Rebasing to alpine 3.11.
|
||||||
* **04.10.19:** - Update package label.
|
* **04.10.19:** - Update package label.
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ app_setup_block: |
|
|||||||
# changelog
|
# changelog
|
||||||
changelogs:
|
changelogs:
|
||||||
|
|
||||||
|
- { date: "30.03.20:", desc: "Internalize blocklist-update.sh." }
|
||||||
- { date: "29.03.20:", desc: "Update auth info in readme." }
|
- { date: "29.03.20:", desc: "Update auth info in readme." }
|
||||||
- { date: "19.12.19:", desc: "Rebasing to alpine 3.11." }
|
- { date: "19.12.19:", desc: "Rebasing to alpine 3.11." }
|
||||||
- { date: "04.10.19:", desc: "Update package label." }
|
- { date: "04.10.19:", desc: "Update package label." }
|
||||||
|
|||||||
0
root/defaults/blocklist-update.sh → root/app/blocklist-update.sh
Normal file → Executable file
0
root/defaults/blocklist-update.sh → root/app/blocklist-update.sh
Normal file → Executable file
@@ -8,10 +8,6 @@ mkdir -p \
|
|||||||
[[ ! -f /config/settings.json ]] && cp \
|
[[ ! -f /config/settings.json ]] && cp \
|
||||||
/defaults/settings.json /config/settings.json
|
/defaults/settings.json /config/settings.json
|
||||||
|
|
||||||
# copy blocklist-update script
|
|
||||||
[[ ! -f /config/blocklist-update.sh ]] && cp \
|
|
||||||
/defaults/blocklist-update.sh /config/blocklist-update.sh
|
|
||||||
|
|
||||||
if [ ! -z "$USER" ] && [ ! -z "$PASS" ]; then
|
if [ ! -z "$USER" ] && [ ! -z "$PASS" ]; then
|
||||||
sed -i '/rpc-authentication-required/c\ "rpc-authentication-required": true,' /config/settings.json
|
sed -i '/rpc-authentication-required/c\ "rpc-authentication-required": true,' /config/settings.json
|
||||||
sed -i "/rpc-username/c\ \"rpc-username\": \"$USER\"," /config/settings.json
|
sed -i "/rpc-username/c\ \"rpc-username\": \"$USER\"," /config/settings.json
|
||||||
|
|||||||
@@ -7,4 +7,4 @@
|
|||||||
0 5 1 * * run-parts /etc/periodic/monthly
|
0 5 1 * * run-parts /etc/periodic/monthly
|
||||||
|
|
||||||
# run daily blocklist update
|
# run daily blocklist update
|
||||||
0 3 * * * /config/blocklist-update.sh 2>&1
|
0 3 * * * /app/blocklist-update.sh 2>&1
|
||||||
|
|||||||
Reference in New Issue
Block a user