Advertisement
pirius

Untitled

Feb 2nd, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.65 KB | None | 0 0
  1. <?xml version='1.0' standalone='yes'?>
  2. <!DOCTYPE PLUGIN [
  3. <!ENTITY name "community.applications">
  4. <!ENTITY author "Andrew Zawadzki">
  5. <!ENTITY version "2016.06.13">
  6. <!ENTITY md5 "f21abd53c4876674e7baeff4274e0395">
  7. <!ENTITY launch "Apps">
  8. <!ENTITY plugdir "/usr/local/emhttp/plugins/&name;">
  9. <!ENTITY github "Squidly271/community.applications">
  10. <!ENTITY pluginURL "https://raw.githubusercontent.com/&github;/master/plugins/&name;.plg">
  11. ]>
  12.  
  13. <PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;">
  14.  
  15. <CHANGES>
  16. ###2016.06.13###
  17. - Fix typos
  18. - Prevent appdata cleanup from deleting parent folders (due to severely misconfigured previous template)
  19. - Add support and project links back to table mode (not sure how / when they got removed)
  20.  
  21. ###2016.06.12###
  22. - Miscellaneous enhancements and fixes
  23.  
  24. ###2016.06.11###
  25. - Added: New module to delete orphaned appdata folders
  26. - Better appdata determination if running unRaid 6.2+
  27.  
  28. ###2016.06.05###
  29. - Fixed: Prevent invalid Support and Project URLs from displaying
  30.  
  31. ###2016.06.02###
  32. - Add in option to speed up backups when using dated backups with automatic deletions
  33.  
  34. ###2016.05.30###
  35. - Add in automatic deletion of old dated backup sets
  36.  
  37. ###2016.05.12###
  38. - Add in dated backup of appdata
  39.  
  40. ###2016.05.08###
  41. - Fixed some bugs with AutoUpdate displays
  42.  
  43. ###2016.05.05###
  44. - Enhanced: Backup - better logging into syslog
  45. - Added: Configurable logging options
  46. - Fixed: Suppress errors if plugins don't have a readme
  47.  
  48. ###2016.05.01###
  49. - Added Configurable notifications on apppdata backup
  50. - Added Exluded folders to appdata backup
  51. - Updated: CA manual
  52. - Added rsync errors now logged
  53. - Lowered memory footprint of program
  54.  
  55. ###2016.04.30###
  56. - Better warnings on overwrites
  57. - Added ability to set backup destinations to a subfolder
  58. - Enhanced script selection / share selection
  59. - Added ability to skip docker.img file on backups
  60. - Fix autoupdate of applications would not always only display installed plugins
  61.  
  62. ###2016.04.28###
  63. - Added: Support for manual / scheduled backups of appData
  64.  
  65. ###2016.04.17###
  66. - Added: Ability to Auto Update Selected Plugins
  67.  
  68. ###2016.04.16###
  69. - Fix: PHP exception when only a single Config entry is present
  70. - Fix: Date application updated when in Legacy mode
  71.  
  72. ###2016.04.10###
  73. - Enhanced: Further security improvements
  74. - Enhanced: cAdvisor template is now 6.2 compliant
  75. - Fix: Suppress error if no docker applications running when in resource monitor
  76. - Added: Ability to install updates for docker applications
  77. - Enhanced: Better determination of appFeed failure
  78. - Added: Confirmation on Update Applications button
  79. - Updated: Manual, Credits
  80.  
  81. ###2016.04.01###
  82. - Fix: Under certain circumstances, data structures could get corrupted
  83. - Enhanced: Further security enhancements
  84.  
  85. ###2016.03.31###
  86. - Security Fix: Prevent arbitrary execution of code from malicious templates
  87. - Fix: Sanitize all Overview out of specification
  88. - Fix: Resource monitor not recognizing cAdvisor installed if name changed
  89. - Fix: Renamed apps will not display usage stats in popup
  90. - Added: option to show change log for CA when updating itself
  91. - Changed: default Host port for cAdvisor to 9243 (something oddball that probably won't conflict with anything else)
  92. - Added: if cAdvisor installed, but not running, abilty to start it within CA
  93. - Updated: Manual
  94.  
  95. ###2016.03.28###
  96. - Coding optimizations
  97. - Fixed: Don't display a support link if no support link available
  98. - Fixed: Add web-page link if repository authors have a web page
  99. - Added: Ability to install updates for plugins
  100. - Fixed: Resource Monitor not displaying icons for customized appFeed apps
  101. - Fixed: Determination of appdata is now case-insensitive when looking for /config
  102. - Fixed: dockerHub conversions now follow settings for new tab or same tab
  103. - Changed: Default value for new tab or same tab is now same tab
  104.  
  105. ###2016.03.26###
  106. - Fixed: Customized apps (based upon a default one in appfeed) were being tagged as incompatible
  107. - Enhanced: Friendly reminder if CA is out of date
  108.  
  109. ###2016.03.24###
  110. - Fixed: Installing previous apps on unRaid 6.2
  111. - Enhanced: Now fully generates v6.2 compliant xml files for dockerMan
  112.  
  113. ###2016.03.20###
  114. - Fixed: readmore on searches (regression error)
  115. - Fixed: private repositories (dockerHub searches) were being saved into wrong folder (regression error)
  116. - Enhanced: Update Applications (or reversion to legacy mode) will not fail if a single repository fails to download
  117. - Enhanced: Now include cAdvisor XML template so as to not rely upon smdion's repository
  118. - Enhanced: Popup descriptions now include links to go to cAdvisor's page for running docker applications
  119. - Enhanced: Templates passed through to dockerMan are now Moderated to allow CA to fix any errors, typos, etc in the author's template
  120. - Enhanced: Major overhaul of the XML template generation
  121. - Enhanced: Continuing code cleanup
  122.  
  123. ###2016.03.13###
  124. - Properly regress to legacy mode in case of improperly formed appFeed
  125. - Overhaul of the javascript
  126.  
  127. ###2016.03.12###
  128. - Remove option to relocate Users menu (and relocate Apps Tab) Use webUI's display settings instead
  129. - Remove option to set appdata share. CA now always prompts to delete appdata if it sees a /config container path
  130. - Resource Monitor supports appdata's stored anywhere on your system (and within multiple folders)
  131. - Fixed: Minor display aberration introduced by unRaid 6.2 beta 18
  132. - Fixed: If a calculation of appdata size was in progress you could not stop the array
  133.  
  134. ###2016.03.10###
  135. - Further enhanced Resource Monitor
  136.  
  137. ###2016.03.06###
  138. - Fixed: Private Repositories now updated every session
  139. - Added: Resource Monitor for Docker Applications
  140.  
  141. ###2016.03.04###
  142. - Added: Running docker applications will now dynamically display CPU and memory utilization statistics
  143. - Various other fixes / enhancements
  144.  
  145. ###2016.02.20###
  146. - 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
  147.  
  148. ###2016.02.19###
  149. - Hot fix for special characters contained within templates
  150.  
  151. ###2016.02.18###
  152. - Added: Support Licence (and its mispelling of License) in templates
  153. - Fixed: Under certain circumstances, Reinstall button could show up instead of Install
  154.  
  155. ###2016.02.14###
  156. - Code Cleanup
  157. - Don't display dockerHub stars if not starred
  158. - Hide search dockerHub if in previous / installed apps
  159. - Fix error in settings if temp directory didn't exist
  160.  
  161. ###2016.02.10###
  162. - Suppress stars.sh error message
  163.  
  164. ###2016.02.08###
  165. - Fixed: Issue with going from dockerHub searches to installed / previously installed
  166. - Fixed: Disallow dockerHub searches if docker not enabled
  167. - Fixed: Disallow adding a previously installed docker app if docker not enabled
  168. - Removed: Legacy Code
  169. - Removed: dockerHub guess at Icons (api broken)
  170. - Fixed: Suppress an error message due to a bad template
  171. - Fixed: Remove some extra temp files once not needed anymore
  172.  
  173. ###2016.02.06###
  174. - Fixed: display abnormality with Firefox
  175. - Enhanced: More intelligent determination of d/l counts
  176. - Enhanced: Rearrange display icons
  177. - Enhanced: Table Mode
  178. - Added: Ability to display installed apps within available lists
  179.  
  180. ###2016.02.04###
  181. - Fix issue with duplicate plugin names
  182.  
  183. ###2016.02.03###
  184. - Suppress docker error messages if docker not running
  185. - Full information on an app now displays total downloads
  186. - Add sort by downloads
  187.  
  188. ###2016.02.01###
  189. - Going forward, unRaid version 6.1+ compatible only
  190. - Fixed: Applications with 2 identical names could disappear from the lists
  191. - Added: Uninstall any application within CA
  192. - Added: Optional deleting of an application's appdata - see manual for details
  193. - Added: Favourite Repositories
  194. - Fixed: Moderator Comments Now only download once per session
  195. - Removed: Local server caching of icons (made no sense to me)
  196.  
  197. ###2016.01.30###
  198. - Added: Separate Installed Apps from categories
  199. - Added: Separate Installed Apps from previously installed
  200. - Added: Incorporate Plugins to installed / previously installed
  201. - Updated: Manual
  202.  
  203. ###2016.01.28###
  204. - Added: Ability to manage previously installed docker apps (my* templates)
  205.  
  206. ###2016.01.24###
  207. - Fix: Under certain circumstances, blank templates would appear
  208.  
  209. ###2016.01.16###
  210. - Fix: Under certain circumstances, updated moderator comments were not being downloaded
  211. - Fix: Under certain circumstances, errors would appear on the popup descriptions
  212.  
  213. ###2016.01.13###
  214. - Fix: Suppress extraneous message on local console during installation
  215.  
  216. ###2016.01.10b###
  217. - Change: Appfeed now only downloaded if it has changed
  218.  
  219. ###2016.01.10###
  220. - Add: Option to not redownload appfeed if reloading apps within a certain time period
  221. - Fix: Alternate icon wasn't displaying properly if template's icon was unavailable
  222. - Updated: Help / Manual
  223.  
  224. ###2016.01.02###
  225. - Fix: Prevent malformed templates from displaying
  226. - Fix: All private containers were being tagged as being incompatible
  227. - Change AppStore to Apps
  228.  
  229. ###2015.12.18###
  230. - Add support for enforcement of application OS requirements (see help thread)
  231.  
  232. ###2015.12.12a###
  233. - Selectable add/edit/settings windows in new tab or not
  234.  
  235. ###2015.12.12###
  236. - Fix: Minor Icon Issues
  237. - Fix: Plugin changelogs now same format as within a .plg file
  238. - Fix: Not all plugins would properly go to the settings page
  239. - Fix: Plugins not sorting by Author name
  240. - Update: Help / Manual
  241.  
  242. ###2015.12.08###
  243. - Minor Bug Fixes
  244. - Settings Button for already install plugins will take you to the plugin settings
  245.  
  246. ###2015.12.06a###
  247. - Disable Update Applications button if an update is in progress NOTE: There is normally zero reason to hit this button anyways
  248. - Fix: Allow user selectable positioning of the AppStore. (Either on the main menu, within settings, or on main menu and move Users to settings)
  249.  
  250. ###2015.12.06###
  251. THIS IS A REQUIRED UPDATE
  252.  
  253. - Relocate plugin from docker tab to its own tab (AppStore)
  254. - Now able to display and install available plugins
  255. - Docker no longer required to be enabled to browse applications
  256.  
  257. ###2015.12.05###
  258. - Fixed: System wouldn't let you add any application if a private repository was present
  259.  
  260. ###2015.10.10###
  261. - Suppress commands executed with /bin/sh appearing on local monitor
  262.  
  263. ###2015.09.29###
  264. - Fixed memory leak with application feed
  265.  
  266. ###2015.09.20###
  267. - Add in super categories for beta and private (selectable from settings)
  268. - More tweaks to docker conversion engine
  269. - Sanitize the input on searches
  270. relocate temporary files to ram
  271. - various other fixes and tweaks
  272.  
  273. ###2015.09.15###
  274. - Remove code for unimplemented features
  275. - Disallow installing dockerHub result if a recommended application uses the same repository
  276. - Fix: *.xml not found was appearing on local terminal if no private repositories were found
  277.  
  278. ###2015.09.12###
  279. - Complete rewrite of dockerHub conversion code, adding more exceptions
  280. - Fix: Clearing search terms no longer displays all containers
  281. - Added in support for moderator comments on a container
  282. - Added in ability to blacklist specific containers
  283.  
  284. ###2015.09.01###
  285. - Implement change required due to dockerHub changing website again (used in dockerHub search mode)
  286. - Add suggested searches for dockerHub
  287. - Numerous under the hood improvements
  288.  
  289. ###2015.08.24###
  290. - Handle new restrictions introduced in RC6
  291.  
  292. ###2015.08.23###
  293. - Suppress some spurious status messages on unRaid's attached monitor
  294. - Expanded manual
  295. - Display dockerHub star ratings for ALL templates
  296.  
  297. ###2015.08.20###
  298. - Better search results for icons on dockerHub
  299. - Search for other containers from author (template mode)
  300. - Resolved issue with spaces in search parameters
  301. - Internal reorganization
  302.  
  303. ###2015.08.15###
  304. - Added in BaseOS display when not in appFeed mode
  305. - Added in Full GUI for searching and converting non-unRaid containers. (See support thread for details)
  306. - Miscellaneous fixes
  307.  
  308. ###2015.08.12###
  309. - Hot Fix for 6.1RC-3
  310.  
  311. ###2015.08.09###
  312. - Hot fix for templates with duplicate tags
  313. - Pop up free in appfeed mode
  314.  
  315. ###2015.08.02###
  316. - Handle blank descriptions, categories, overviews in appFeed mode
  317. - Fix not able to show changelog on application names containing spaces
  318. - Integrate searching (and converting) from dockerHub
  319.  
  320. ###2015.07.26a###
  321. - Hot fix for 6.1 RC-2
  322.  
  323. ###2015.07.25c###
  324. - Fixed Internet Explorer crashing
  325. - Added Icon Details view mode
  326.  
  327. ###2015.07.23###
  328. - Unified UI between icon and table mode
  329. - Switch between icon and table mode on the fly
  330. - Faster sorting in icon mode
  331. - Add sort by date updated
  332.  
  333. ###Note: you must allow your browser to display popups from your server when in appFeed mode###
  334.  
  335. ###2015.07.20###
  336. - Code unified between tables and icons
  337. - Added pop up descriptions to table mode, hover descriptions to icon mode
  338. - Fix intermittent bug where a blank template could appear
  339.  
  340. ###2015.07.19###
  341. - 6.1rc-1 Broke Community Applications - Fixed
  342.  
  343. ###2015.07.18###
  344. - Coding Improvements
  345. - Revamp Icon Mode Descriptions
  346. - Add support for Project Home Page links
  347.  
  348. ###2015.07.16###
  349. - Significantly reduce memory footprint
  350. - Allow private repositories to be used in conjunction with application feed
  351. - Force Update in application feed mode will temporarily revert to template mode
  352. - Failure to download application feed will revert system to template mode
  353.  
  354. ###2015.07.15###
  355. - Added option to automatically update the application list when entering Docker tab
  356. - Added in support for Kode's real-time application feed update
  357. - Remove background table lines in icon mode
  358. - Removed option to automatically fill out template paths
  359.  
  360. ###2015.07.08###
  361. - Clicking the repository will now open the announcement thread in a new tab
  362.  
  363. ###2015.07.04###
  364. - Added in option to display small icons in icon mode
  365. - Optionally overwrite ALL host paths when in experimental overwrite host path mode
  366.  
  367. ###2015.07.02###
  368. - Fixed display abberation in table mode when searching for application with change log
  369. ###2015.07.01###
  370. - Added an experimental option to automatically fill in host paths. See support thread for details.
  371.  
  372. ###2015.06.21###
  373. - Table Mode: Repository was not displaying (introduced in 2015.06.14) (my bad - never noticed)
  374.  
  375. ###2015.06.18###
  376. - Changed to a more intuitive Apply / Done buttons in settings
  377.  
  378. ###2016.06.17###
  379. - Fixed table header sometimes displaying in Icon Mode
  380. - Made settings default values consistent between modules
  381. - Added help text for Icon Mode
  382. - Icon mode now default
  383.  
  384. ###2015.06.15###
  385. - Expanded descriptions in Icon mode
  386. - Fixed applications in beta repositories not being flagged correctly
  387.  
  388. ###2015.06.14a###
  389. - Fixed cursor over information icon and application icon (Icon mode)
  390. - Fixed applications not displaying description if a space was in the name (Icon mode)
  391.  
  392. ###2015.06.14###
  393. - Added Icon view mode (more mobile friendly!)
  394.  
  395. ###2015.06.11###
  396. - Coding optimizations
  397. - Add help text
  398.  
  399. ###2015.06.08###
  400. - Added support for new / updated containers
  401. - Expanded settings section
  402.  
  403. ###2015.06.06###
  404. - Added a settings section
  405.  
  406. ###2015.06.03a###
  407. - Optional local caching of application icons
  408.  
  409. ###2015.06.03###
  410. - Initial display is now blank (faster)
  411. - Going from subcategory to all categories no longer displays all categories
  412.  
  413. ###2015.06.02###
  414. - Added support for Changes tag
  415. - Added non-intrusive reminder to update applications after 14 days
  416.  
  417. ###2015.05.31###
  418. - Renamed DNS Servers to be DNS Client / Servers
  419.  
  420. ###2015.05.30###
  421. - Miscellaneous download fixes
  422.  
  423. ###2015.05.28###
  424. - Initial Release
  425. </CHANGES>
  426.  
  427. <!-- The 'pre-install' script. -->
  428. <FILE Run="/usr/bin/php">
  429. <INLINE>
  430. <![CDATA[
  431. <?
  432. $version = parse_ini_file("/etc/unraid-version");
  433.  
  434. if ( version_compare($version['version'],"6.1.0", "<") )
  435. {
  436. echo "********************************************************************\n";
  437. echo "\n";
  438. echo "Community Applications Requires unRaid version 6.1 or greater to run\n";
  439. echo "\n";
  440. echo "********************************************************************\n";
  441. exit(1);
  442. }
  443. ?>
  444. ]]>
  445. </INLINE>
  446. </FILE>
  447.  
  448. <FILE Run="/bin/bash">
  449. <INLINE>
  450. # Remove old 'source' files
  451. rm -f $(ls /boot/config/plugins/&name;/&name;*.txz 2>/dev/null|grep -v '&version;')
  452. if [[ -d /boot/config/plugins/repo.update ]]; then rm -rf /boot/config/plugins/repo.update; fi
  453. if [[ -d /usr/local/emhttp/plugins/repo.update ]]; then rm -rf /usr/local/emhttp/plugins/repo.update; fi
  454. if [[ -n $(ls /boot/config/plugins/repo.update*.plg 2>/dev/null) ]]; then rm /boot/config/plugins/repo.update*.plg; fi
  455. #FIX DOCKER PAGE ORDER
  456. sed -i -e 's/Menu="Docker"/Menu="Docker:1"/' /usr/local/emhttp/plugins/dynamix.docker.manager/DockerContainers.page
  457. sed -i -e 's/Menu="Docker"/Menu="Docker:2"/' /usr/local/emhttp/plugins/dynamix.docker.manager/DockerRepositories.page
  458. sed -i -e 's/Menu="Docker"/Menu="Docker:3"/' /usr/local/emhttp/plugins/dynamix.docker.manager/DockerSettings.page
  459.  
  460. if [[ -e /tmp/community.applications/tempFiles/templates.json ]]; then rm /tmp/community.applications/tempFiles/templates.json; fi
  461. </INLINE>
  462. </FILE>
  463.  
  464. <!--
  465. The 'source' file.
  466. -->
  467. <FILE Name="/boot/config/plugins/&name;/&name;-&version;.txz" Run="upgradepkg --install-new">
  468. <URL>https://raw.github.com/&github;/master/archive/&name;-&version;.txz</URL>
  469. <MD5>&md5;</MD5>
  470. </FILE>
  471.  
  472. <!--
  473. The 'post-install' script
  474. -->
  475. <FILE Run="/bin/bash">
  476. <INLINE>
  477. echo "Creating Directories"
  478. mkdir -p /var/lib/docker/unraid/templates-community-apps
  479. mkdir -p /var/lib/docker/unraid/community.applications.datastore
  480. mkdir -p /tmp/community.applications/tempFiles
  481. mkdir -p /boot/config/plugins/community.applications
  482. cp /usr/local/emhttp/plugins/community.applications/scripts/updateApplications.sh /etc/cron.daily/updateApplications.sh
  483. /usr/local/emhttp/plugins/community.applications/scripts/removeCron.php
  484. /usr/local/emhttp/plugins/community.applications/scripts/addCron.php
  485. 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
  486.  
  487. echo ""
  488. echo "----------------------------------------------------"
  489. echo " &name; has been installed."
  490. echo " Copyright 2015-2016, Andrew Zawadzki"
  491. echo " Version: &version;"
  492. echo "----------------------------------------------------"
  493. echo ""
  494. </INLINE>
  495. </FILE>
  496.  
  497. <!--
  498. The 'remove' script.
  499. -->
  500. <FILE Run="/bin/bash" Method="remove">
  501. <INLINE>
  502. /usr/local/emhttp/plugins/community.applications/scripts/removeCron.php
  503. removepkg &name;-&version;
  504. rm /etc/cron.daily/updateApplications.php
  505. rm -rf &plugdir;
  506. rm -rf /boot/config/plugins/&name;
  507. rm -rf /var/lib/docker/unraid/templates-community
  508. </INLINE>
  509. </FILE>
  510. </PLUGIN>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement