diff --git a/README.md b/README.md index bd9419cc..2c48eaaa 100644 --- a/README.md +++ b/README.md @@ -308,6 +308,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64 ## Versions +* **06.09.23:** - Add deprecation warning as per [https://info.linuxserver.io/issues/2023-09-06-unifi-controller](https://info.linuxserver.io/issues/2023-09-06-unifi-controller). * **04.09.23:** - Bump JRE to 17 to support v7.5. * **04.05.23:** - Cleanup `apt-get install` during build to reduce image size. * **18.03.23:** - Add mongoless branch. diff --git a/readme-vars.yml b/readme-vars.yml index ce069880..01614a83 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -89,6 +89,7 @@ app_setup_block: | # changelog changelogs: + - { date: "06.09.23:", desc: "Add deprecation warning as per [https://info.linuxserver.io/issues/2023-09-06-unifi-controller](https://info.linuxserver.io/issues/2023-09-06-unifi-controller)."} - { date: "04.09.23:", desc: "Bump JRE to 17 to support v7.5."} - { date: "04.05.23:", desc: "Cleanup `apt-get install` during build to reduce image size."} - { date: "18.03.23:", desc: "Add mongoless branch."} diff --git a/root/etc/s6-overlay/s6-rc.d/init-config-end/dependencies.d/init-unifi-controller-config b/root/etc/s6-overlay/s6-rc.d/init-config-end/dependencies.d/init-deprecation-config similarity index 100% rename from root/etc/s6-overlay/s6-rc.d/init-config-end/dependencies.d/init-unifi-controller-config rename to root/etc/s6-overlay/s6-rc.d/init-config-end/dependencies.d/init-deprecation-config diff --git a/root/etc/s6-overlay/s6-rc.d/init-deprecation-config/dependencies.d/init-unifi-controller-config b/root/etc/s6-overlay/s6-rc.d/init-deprecation-config/dependencies.d/init-unifi-controller-config new file mode 100644 index 00000000..e69de29b diff --git a/root/etc/s6-overlay/s6-rc.d/init-deprecation-config/run b/root/etc/s6-overlay/s6-rc.d/init-deprecation-config/run new file mode 100755 index 00000000..bdf70d8a --- /dev/null +++ b/root/etc/s6-overlay/s6-rc.d/init-deprecation-config/run @@ -0,0 +1,17 @@ +#!/usr/bin/with-contenv bash +# shellcheck shell=bash + +echo "┌─────────────────────────────────────────────────────────────────────────────┐" +echo "│ │" +echo "| From 2024-01-01 this image will be deprecated │" +echo "| and it will no longer be updated. │" +echo "│ │" +echo "│ See: https://info.linuxserver.io/issues/2023-09-06-unifi-controller |" +echo "| for more details. │" +echo "│ │" +echo "├─────────────────────────────────────────────────────────────────────────────┤" +echo "│ │" +echo "│ Please migrate to our Unifi Network Application image instead: │" +echo "│ https://github.com/linuxserver/docker-unifi-network-application │" +echo "│ │" +echo "└─────────────────────────────────────────────────────────────────────────────┘" diff --git a/root/etc/s6-overlay/s6-rc.d/init-deprecation-config/type b/root/etc/s6-overlay/s6-rc.d/init-deprecation-config/type new file mode 100644 index 00000000..bdd22a18 --- /dev/null +++ b/root/etc/s6-overlay/s6-rc.d/init-deprecation-config/type @@ -0,0 +1 @@ +oneshot diff --git a/root/etc/s6-overlay/s6-rc.d/init-deprecation-config/up b/root/etc/s6-overlay/s6-rc.d/init-deprecation-config/up new file mode 100644 index 00000000..1d01d5e5 --- /dev/null +++ b/root/etc/s6-overlay/s6-rc.d/init-deprecation-config/up @@ -0,0 +1 @@ +/etc/s6-overlay/s6-rc.d/init-deprecation-config/run diff --git a/root/etc/s6-overlay/s6-rc.d/user/contents.d/init-deprecation-config b/root/etc/s6-overlay/s6-rc.d/user/contents.d/init-deprecation-config new file mode 100644 index 00000000..e69de29b