Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version='1.0' standalone='yes'?>
- <!DOCTYPE PLUGIN [
- <!ENTITY name "community.applications">
- <!ENTITY author "Andrew Zawadzki">
- <!ENTITY version "2016.06.13">
- <!ENTITY md5 "f21abd53c4876674e7baeff4274e0395">
- <!ENTITY launch "Apps">
- <!ENTITY plugdir "/usr/local/emhttp/plugins/&name;">
- <!ENTITY github "Squidly271/community.applications">
- <!ENTITY pluginURL "https://raw.githubusercontent.com/&github;/master/plugins/&name;.plg">
- ]>
- <PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;">
- <CHANGES>
- ###2016.06.13###
- - Fix typos
- - Prevent appdata cleanup from deleting parent folders (due to severely misconfigured previous template)
- - Add support and project links back to table mode (not sure how / when they got removed)
- ###2016.06.12###
- - Miscellaneous enhancements and fixes
- ###2016.06.11###
- - Added: New module to delete orphaned appdata folders
- - Better appdata determination if running unRaid 6.2+
- ###2016.06.05###
- - Fixed: Prevent invalid Support and Project URLs from displaying
- ###2016.06.02###
- - Add in option to speed up backups when using dated backups with automatic deletions
- ###2016.05.30###
- - Add in automatic deletion of old dated backup sets
- ###2016.05.12###
- - Add in dated backup of appdata
- ###2016.05.08###
- - Fixed some bugs with AutoUpdate displays
- ###2016.05.05###
- - Enhanced: Backup - better logging into syslog
- - Added: Configurable logging options
- - Fixed: Suppress errors if plugins don't have a readme
- ###2016.05.01###
- - Added Configurable notifications on apppdata backup
- - Added Exluded folders to appdata backup
- - Updated: CA manual
- - Added rsync errors now logged
- - Lowered memory footprint of program
- ###2016.04.30###
- - Better warnings on overwrites
- - Added ability to set backup destinations to a subfolder
- - Enhanced script selection / share selection
- - Added ability to skip docker.img file on backups
- - Fix autoupdate of applications would not always only display installed plugins
- ###2016.04.28###
- - Added: Support for manual / scheduled backups of appData
- ###2016.04.17###
- - Added: Ability to Auto Update Selected Plugins
- ###2016.04.16###
- - Fix: PHP exception when only a single Config entry is present
- - Fix: Date application updated when in Legacy mode
- ###2016.04.10###
- - Enhanced: Further security improvements
- - Enhanced: cAdvisor template is now 6.2 compliant
- - Fix: Suppress error if no docker applications running when in resource monitor
- - Added: Ability to install updates for docker applications
- - Enhanced: Better determination of appFeed failure
- - Added: Confirmation on Update Applications button
- - Updated: Manual, Credits
- ###2016.04.01###
- - Fix: Under certain circumstances, data structures could get corrupted
- - Enhanced: Further security enhancements
- ###2016.03.31###
- - Security Fix: Prevent arbitrary execution of code from malicious templates
- - Fix: Sanitize all Overview out of specification
- - Fix: Resource monitor not recognizing cAdvisor installed if name changed
- - Fix: Renamed apps will not display usage stats in popup
- - Added: option to show change log for CA when updating itself
- - Changed: default Host port for cAdvisor to 9243 (something oddball that probably won't conflict with anything else)
- - Added: if cAdvisor installed, but not running, abilty to start it within CA
- - Updated: Manual
- ###2016.03.28###
- - Coding optimizations
- - Fixed: Don't display a support link if no support link available
- - Fixed: Add web-page link if repository authors have a web page
- - Added: Ability to install updates for plugins
- - Fixed: Resource Monitor not displaying icons for customized appFeed apps
- - Fixed: Determination of appdata is now case-insensitive when looking for /config
- - Fixed: dockerHub conversions now follow settings for new tab or same tab
- - Changed: Default value for new tab or same tab is now same tab
- ###2016.03.26###
- - Fixed: Customized apps (based upon a default one in appfeed) were being tagged as incompatible
- - Enhanced: Friendly reminder if CA is out of date
- ###2016.03.24###
- - Fixed: Installing previous apps on unRaid 6.2
- - Enhanced: Now fully generates v6.2 compliant xml files for dockerMan
- ###2016.03.20###
- - Fixed: readmore on searches (regression error)
- - Fixed: private repositories (dockerHub searches) were being saved into wrong folder (regression error)
- - Enhanced: Update Applications (or reversion to legacy mode) will not fail if a single repository fails to download
- - Enhanced: Now include cAdvisor XML template so as to not rely upon smdion's repository
- - Enhanced: Popup descriptions now include links to go to cAdvisor's page for running docker applications
- - Enhanced: Templates passed through to dockerMan are now Moderated to allow CA to fix any errors, typos, etc in the author's template
- - Enhanced: Major overhaul of the XML template generation
- - Enhanced: Continuing code cleanup
- ###2016.03.13###
- - Properly regress to legacy mode in case of improperly formed appFeed
- - Overhaul of the javascript
- ###2016.03.12###
- - Remove option to relocate Users menu (and relocate Apps Tab) Use webUI's display settings instead
- - Remove option to set appdata share. CA now always prompts to delete appdata if it sees a /config container path
- - Resource Monitor supports appdata's stored anywhere on your system (and within multiple folders)
- - Fixed: Minor display aberration introduced by unRaid 6.2 beta 18
- - Fixed: If a calculation of appdata size was in progress you could not stop the array
- ###2016.03.10###
- - Further enhanced Resource Monitor
- ###2016.03.06###
- - Fixed: Private Repositories now updated every session
- - Added: Resource Monitor for Docker Applications
- ###2016.03.04###
- - Added: Running docker applications will now dynamically display CPU and memory utilization statistics
- - Various other fixes / enhancements
- ###2016.02.20###
- - Fixed: Under certain circumstances, the domain URL listed in a plugin might not be what the author actually specified (eg: raw.github.com vs raw.githubusercontent.com) causing some plugins to not display in the previously installed section
- ###2016.02.19###
- - Hot fix for special characters contained within templates
- ###2016.02.18###
- - Added: Support Licence (and its mispelling of License) in templates
- - Fixed: Under certain circumstances, Reinstall button could show up instead of Install
- ###2016.02.14###
- - Code Cleanup
- - Don't display dockerHub stars if not starred
- - Hide search dockerHub if in previous / installed apps
- - Fix error in settings if temp directory didn't exist
- ###2016.02.10###
- - Suppress stars.sh error message
- ###2016.02.08###
- - Fixed: Issue with going from dockerHub searches to installed / previously installed
- - Fixed: Disallow dockerHub searches if docker not enabled
- - Fixed: Disallow adding a previously installed docker app if docker not enabled
- - Removed: Legacy Code
- - Removed: dockerHub guess at Icons (api broken)
- - Fixed: Suppress an error message due to a bad template
- - Fixed: Remove some extra temp files once not needed anymore
- ###2016.02.06###
- - Fixed: display abnormality with Firefox
- - Enhanced: More intelligent determination of d/l counts
- - Enhanced: Rearrange display icons
- - Enhanced: Table Mode
- - Added: Ability to display installed apps within available lists
- ###2016.02.04###
- - Fix issue with duplicate plugin names
- ###2016.02.03###
- - Suppress docker error messages if docker not running
- - Full information on an app now displays total downloads
- - Add sort by downloads
- ###2016.02.01###
- - Going forward, unRaid version 6.1+ compatible only
- - Fixed: Applications with 2 identical names could disappear from the lists
- - Added: Uninstall any application within CA
- - Added: Optional deleting of an application's appdata - see manual for details
- - Added: Favourite Repositories
- - Fixed: Moderator Comments Now only download once per session
- - Removed: Local server caching of icons (made no sense to me)
- ###2016.01.30###
- - Added: Separate Installed Apps from categories
- - Added: Separate Installed Apps from previously installed
- - Added: Incorporate Plugins to installed / previously installed
- - Updated: Manual
- ###2016.01.28###
- - Added: Ability to manage previously installed docker apps (my* templates)
- ###2016.01.24###
- - Fix: Under certain circumstances, blank templates would appear
- ###2016.01.16###
- - Fix: Under certain circumstances, updated moderator comments were not being downloaded
- - Fix: Under certain circumstances, errors would appear on the popup descriptions
- ###2016.01.13###
- - Fix: Suppress extraneous message on local console during installation
- ###2016.01.10b###
- - Change: Appfeed now only downloaded if it has changed
- ###2016.01.10###
- - Add: Option to not redownload appfeed if reloading apps within a certain time period
- - Fix: Alternate icon wasn't displaying properly if template's icon was unavailable
- - Updated: Help / Manual
- ###2016.01.02###
- - Fix: Prevent malformed templates from displaying
- - Fix: All private containers were being tagged as being incompatible
- - Change AppStore to Apps
- ###2015.12.18###
- - Add support for enforcement of application OS requirements (see help thread)
- ###2015.12.12a###
- - Selectable add/edit/settings windows in new tab or not
- ###2015.12.12###
- - Fix: Minor Icon Issues
- - Fix: Plugin changelogs now same format as within a .plg file
- - Fix: Not all plugins would properly go to the settings page
- - Fix: Plugins not sorting by Author name
- - Update: Help / Manual
- ###2015.12.08###
- - Minor Bug Fixes
- - Settings Button for already install plugins will take you to the plugin settings
- ###2015.12.06a###
- - Disable Update Applications button if an update is in progress NOTE: There is normally zero reason to hit this button anyways
- - Fix: Allow user selectable positioning of the AppStore. (Either on the main menu, within settings, or on main menu and move Users to settings)
- ###2015.12.06###
- THIS IS A REQUIRED UPDATE
- - Relocate plugin from docker tab to its own tab (AppStore)
- - Now able to display and install available plugins
- - Docker no longer required to be enabled to browse applications
- ###2015.12.05###
- - Fixed: System wouldn't let you add any application if a private repository was present
- ###2015.10.10###
- - Suppress commands executed with /bin/sh appearing on local monitor
- ###2015.09.29###
- - Fixed memory leak with application feed
- ###2015.09.20###
- - Add in super categories for beta and private (selectable from settings)
- - More tweaks to docker conversion engine
- - Sanitize the input on searches
- relocate temporary files to ram
- - various other fixes and tweaks
- ###2015.09.15###
- - Remove code for unimplemented features
- - Disallow installing dockerHub result if a recommended application uses the same repository
- - Fix: *.xml not found was appearing on local terminal if no private repositories were found
- ###2015.09.12###
- - Complete rewrite of dockerHub conversion code, adding more exceptions
- - Fix: Clearing search terms no longer displays all containers
- - Added in support for moderator comments on a container
- - Added in ability to blacklist specific containers
- ###2015.09.01###
- - Implement change required due to dockerHub changing website again (used in dockerHub search mode)
- - Add suggested searches for dockerHub
- - Numerous under the hood improvements
- ###2015.08.24###
- - Handle new restrictions introduced in RC6
- ###2015.08.23###
- - Suppress some spurious status messages on unRaid's attached monitor
- - Expanded manual
- - Display dockerHub star ratings for ALL templates
- ###2015.08.20###
- - Better search results for icons on dockerHub
- - Search for other containers from author (template mode)
- - Resolved issue with spaces in search parameters
- - Internal reorganization
- ###2015.08.15###
- - Added in BaseOS display when not in appFeed mode
- - Added in Full GUI for searching and converting non-unRaid containers. (See support thread for details)
- - Miscellaneous fixes
- ###2015.08.12###
- - Hot Fix for 6.1RC-3
- ###2015.08.09###
- - Hot fix for templates with duplicate tags
- - Pop up free in appfeed mode
- ###2015.08.02###
- - Handle blank descriptions, categories, overviews in appFeed mode
- - Fix not able to show changelog on application names containing spaces
- - Integrate searching (and converting) from dockerHub
- ###2015.07.26a###
- - Hot fix for 6.1 RC-2
- ###2015.07.25c###
- - Fixed Internet Explorer crashing
- - Added Icon Details view mode
- ###2015.07.23###
- - Unified UI between icon and table mode
- - Switch between icon and table mode on the fly
- - Faster sorting in icon mode
- - Add sort by date updated
- ###Note: you must allow your browser to display popups from your server when in appFeed mode###
- ###2015.07.20###
- - Code unified between tables and icons
- - Added pop up descriptions to table mode, hover descriptions to icon mode
- - Fix intermittent bug where a blank template could appear
- ###2015.07.19###
- - 6.1rc-1 Broke Community Applications - Fixed
- ###2015.07.18###
- - Coding Improvements
- - Revamp Icon Mode Descriptions
- - Add support for Project Home Page links
- ###2015.07.16###
- - Significantly reduce memory footprint
- - Allow private repositories to be used in conjunction with application feed
- - Force Update in application feed mode will temporarily revert to template mode
- - Failure to download application feed will revert system to template mode
- ###2015.07.15###
- - Added option to automatically update the application list when entering Docker tab
- - Added in support for Kode's real-time application feed update
- - Remove background table lines in icon mode
- - Removed option to automatically fill out template paths
- ###2015.07.08###
- - Clicking the repository will now open the announcement thread in a new tab
- ###2015.07.04###
- - Added in option to display small icons in icon mode
- - Optionally overwrite ALL host paths when in experimental overwrite host path mode
- ###2015.07.02###
- - Fixed display abberation in table mode when searching for application with change log
- ###2015.07.01###
- - Added an experimental option to automatically fill in host paths. See support thread for details.
- ###2015.06.21###
- - Table Mode: Repository was not displaying (introduced in 2015.06.14) (my bad - never noticed)
- ###2015.06.18###
- - Changed to a more intuitive Apply / Done buttons in settings
- ###2016.06.17###
- - Fixed table header sometimes displaying in Icon Mode
- - Made settings default values consistent between modules
- - Added help text for Icon Mode
- - Icon mode now default
- ###2015.06.15###
- - Expanded descriptions in Icon mode
- - Fixed applications in beta repositories not being flagged correctly
- ###2015.06.14a###
- - Fixed cursor over information icon and application icon (Icon mode)
- - Fixed applications not displaying description if a space was in the name (Icon mode)
- ###2015.06.14###
- - Added Icon view mode (more mobile friendly!)
- ###2015.06.11###
- - Coding optimizations
- - Add help text
- ###2015.06.08###
- - Added support for new / updated containers
- - Expanded settings section
- ###2015.06.06###
- - Added a settings section
- ###2015.06.03a###
- - Optional local caching of application icons
- ###2015.06.03###
- - Initial display is now blank (faster)
- - Going from subcategory to all categories no longer displays all categories
- ###2015.06.02###
- - Added support for Changes tag
- - Added non-intrusive reminder to update applications after 14 days
- ###2015.05.31###
- - Renamed DNS Servers to be DNS Client / Servers
- ###2015.05.30###
- - Miscellaneous download fixes
- ###2015.05.28###
- - Initial Release
- </CHANGES>
- <!-- The 'pre-install' script. -->
- <FILE Run="/usr/bin/php">
- <INLINE>
- <![CDATA[
- <?
- $version = parse_ini_file("/etc/unraid-version");
- if ( version_compare($version['version'],"6.1.0", "<") )
- {
- echo "********************************************************************\n";
- echo "\n";
- echo "Community Applications Requires unRaid version 6.1 or greater to run\n";
- echo "\n";
- echo "********************************************************************\n";
- exit(1);
- }
- ?>
- ]]>
- </INLINE>
- </FILE>
- <FILE Run="/bin/bash">
- <INLINE>
- # Remove old 'source' files
- rm -f $(ls /boot/config/plugins/&name;/&name;*.txz 2>/dev/null|grep -v '&version;')
- if [[ -d /boot/config/plugins/repo.update ]]; then rm -rf /boot/config/plugins/repo.update; fi
- if [[ -d /usr/local/emhttp/plugins/repo.update ]]; then rm -rf /usr/local/emhttp/plugins/repo.update; fi
- if [[ -n $(ls /boot/config/plugins/repo.update*.plg 2>/dev/null) ]]; then rm /boot/config/plugins/repo.update*.plg; fi
- #FIX DOCKER PAGE ORDER
- sed -i -e 's/Menu="Docker"/Menu="Docker:1"/' /usr/local/emhttp/plugins/dynamix.docker.manager/DockerContainers.page
- sed -i -e 's/Menu="Docker"/Menu="Docker:2"/' /usr/local/emhttp/plugins/dynamix.docker.manager/DockerRepositories.page
- sed -i -e 's/Menu="Docker"/Menu="Docker:3"/' /usr/local/emhttp/plugins/dynamix.docker.manager/DockerSettings.page
- if [[ -e /tmp/community.applications/tempFiles/templates.json ]]; then rm /tmp/community.applications/tempFiles/templates.json; fi
- </INLINE>
- </FILE>
- <!--
- The 'source' file.
- -->
- <FILE Name="/boot/config/plugins/&name;/&name;-&version;.txz" Run="upgradepkg --install-new">
- <URL>https://raw.github.com/&github;/master/archive/&name;-&version;.txz</URL>
- <MD5>&md5;</MD5>
- </FILE>
- <!--
- The 'post-install' script
- -->
- <FILE Run="/bin/bash">
- <INLINE>
- echo "Creating Directories"
- mkdir -p /var/lib/docker/unraid/templates-community-apps
- mkdir -p /var/lib/docker/unraid/community.applications.datastore
- mkdir -p /tmp/community.applications/tempFiles
- mkdir -p /boot/config/plugins/community.applications
- cp /usr/local/emhttp/plugins/community.applications/scripts/updateApplications.sh /etc/cron.daily/updateApplications.sh
- /usr/local/emhttp/plugins/community.applications/scripts/removeCron.php
- /usr/local/emhttp/plugins/community.applications/scripts/addCron.php
- if [[ ! -e /boot/config/plugins/community.applications/AutoUpdate.json ]]; then cp /usr/local/emhttp/plugins/community.applications/scripts/AutoUpdate.json /boot/config/plugins/community.applications/AutoUpdate.json; fi
- echo ""
- echo "----------------------------------------------------"
- echo " &name; has been installed."
- echo " Copyright 2015-2016, Andrew Zawadzki"
- echo " Version: &version;"
- echo "----------------------------------------------------"
- echo ""
- </INLINE>
- </FILE>
- <!--
- The 'remove' script.
- -->
- <FILE Run="/bin/bash" Method="remove">
- <INLINE>
- /usr/local/emhttp/plugins/community.applications/scripts/removeCron.php
- removepkg &name;-&version;
- rm /etc/cron.daily/updateApplications.php
- rm -rf &plugdir;
- rm -rf /boot/config/plugins/&name;
- rm -rf /var/lib/docker/unraid/templates-community
- </INLINE>
- </FILE>
- </PLUGIN>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement