]> ###2024.03.17 - PHP8 Fixes ###2024.02.10 - PHP8 Fixes ###2023.09.30 - Changed: Run update_cron at array start (Fixes issue with OS 6.12.4) ###2023.08.27 - Fix delay in delays reverting to 3 if set to 0 ###2023.07.05 - Fix regression error ###2023.07.04 - Fix regression error on plugin delay in days ###2023.07.03 - PHP8 Upgrades ###2023.02.20 - PHP8 Upgrades - Plugin Age fix ###2023.02.16 - PHP8 Upgrades ###2021.09.24 - MyServers compatibility ###2021.08.15 - Apps missing a registry URL would not appear in the list to update ###2021.07.31a - I'm an idiot ###2021.07.31 - Silence PHP error under certain circumstances ###2021.07.19 - 6.10.0 compatibility fixes ###2021.03.10 - Permission Fixes ###2021.01.03 - Fixed: Operation of Done Button ###2020.12.27 - Fix minimum OS version required to update plugin ###2020.12.18 - If set to update all plugins and delay in days is 0, update every plugin regardless if it uses a conforming version date. ###2020.10.21 - Compatibility Fixes ###2020.09.27 - When running 6.9 Beta 27+, clicking on an alert from Update applications will take you to either Plugins or Docker Tabs as applicable ###2020.07.23 - Fixed: Multi-language support ###2020.06.27 - Compatibility fix for 6.9.0-beta22+ ###2020.04.30 - Support updates for language files ###2020.04.05 - Multi language support ###2020.02.13 - Update the optional start / stop scripts for work under 6.8+ ###2019.10.13 - Docker: Display default icon if no icon is present ###2019.09.23 - Remove backup of old plugins to lessen writes to flash drive ###2019.09.09 - Patch docker client to properly detect updates available ###2019.04.15 - Remove experimental code mistakenly added ###2019.04.13 - Prevent extraneous notifications on unRaid 6.7.0-rc7+ ###2019.02.22 - Work around for unRaid believing an image is installed, but one isn't under certain circumstances - Fix up coloring in credits popup ###2019.01.31 - Add note that custom is a cron expression ###2019.01.14 - Support new style icons ###2019.01.01 - By request, remove spinning icon :( ###2018.12.31 - Update icon for future release of unRaid - Display aberration if plugin does not have an icon associated with it ###2018.11.11 - autov function ###2018.10.19 - Fix Broken Pipe ###2018.03.02 - Fixed: PHP Warnings (hidden) being issued on 6.5.0+ ###2017.11.23 - Reorganization as part of updates to CA proper ###2017.10.28 - Prevent back to top displaying on 6.4.0-rc10b+ ###2017.06.09 - Fix display aberration on 6.4 - Add in support for number of seconds to wait for container to stop gracefully before killing ###2017.03.18 - Added in ability to run custom stop / start scripts for docker updates. See CA manual for details ###2017.02.19 - Fixed uninstall routine ###2016.12.18 - Force tabbed mode display ###2016.11.30 - Fix 6.2.4 Compatibility ###2016.11.25 - Added Docker App autoupdates - Added Selectable run times for Plugin and Docker updates - Fixed Under certain circumstances, plugin updates could get installed prior to age requirements ###2016.11.11 - Initial Release /dev/null 2>&1\n"; file_put_contents("/boot/config/plugins/ca.update.applications/plugin_update.cron",$cron); } if ( version_compare($version['version'],"6.7.9","<") ) { echo "Patching DockerClient\n"; $DockerClient = file_get_contents("/usr/local/emhttp/plugins/dynamix.docker.manager/include/DockerClient.php"); $DockerClient = str_replace("Accept: application/vnd.docker.distribution.manifest.v2+json","Accept: application/vnd.docker.distribution.manifest.list.v2+json,application/vnd.docker.distribution.manifest.v2+json",$DockerClient); file_put_contents("/usr/local/emhttp/plugins/dynamix.docker.manager/include/DockerClient.php",$DockerClient); } ?> ]]> # Remove old 'source' files rm -f $(ls /boot/config/plugins/&name;/&name;*.txz 2>/dev/null | grep -v '&version;') https://raw.githubusercontent.com/&github;/master/archive/&name;-&version;-x86_64-1.txz &md5; mv /boot/config/plugins/community.applications/AutoUpdateSettings.json /boot/config/plugins/ca.update.applications/AutoUpdateSettings.json > /dev/null 2> /dev/null /usr/local/sbin/update_cron mkdir -p /boot/config/plugins/ca.update.applications/scripts/stopping mkdir -p /boot/config/plugins/ca.update.applications/scripts/starting rm -rf /usr/local/emhttp/plugins/ca.update.applications/CA.page rm -rf /usr/local/emhttp/plugins/ca.update.applications/caHelp.page echo "" echo "----------------------------------------------------" echo " &name; has been installed." echo " Copyright 2015-2024, Andrew Zawadzki" echo " Version: &version;" echo "----------------------------------------------------" echo "" removepkg &name;-&version;-x86_64-1 rm -rf &plugdir; rm -rf /boot/config/plugins/&name; /usr/local/sbin/update_cron