Loading...
 

Automatic Updates

There are two scripts you can use:

svnup.php

svnup.php which is bundled starting in Tiki17:
https://sourceforge.net/p/tikiwiki/code/HEAD/tree/trunk/doc/devtools/svnup.php

An example of this script on a daily cron job
0 0 * * * cd /var/www/html/;  php doc/devtools/svnup.php

TRIM

TRIM, which is useful when you have many Tikis to manage:
https://doc.tiki.org/TRIM#To_setup_automated_updates


Goals 

  • Set up unattended self-updating Tiki
    • This is for 12.3 -> 12.4 -> 12.5 but not for 12.x -> 13.x
  • Will be very appealing for LTS versions (set and forget for a few years)
  • Get a warning and abort update if a conflict is detected
  • Run tiki-check.php to detect any changes on the OS which could cause issues

Steps 

Install 

  • Install normally via SVN
  • Make sure .htaccess is an alias of _htaccess to avoid merge conflicts
  • Make as few changes to Tiki code as possible, and if you must, make them clean and self-contained to reduce changes of SVN merging conflicts.

Check if new version of Tiki is available 

Check if the update would cause conflicts 

Conflict detected 

  • Alert site admin

No conflict detected 

Proceed to upgrade 

  • svn upgrade
  • sh setup.sh -n fix
  • php console.php database:update
  • php console.php cache:clear
  • php console.php index:rebuild
  • lock the installer


Implementations 

ClearOS 

Other ideas 

  • Would be nice to be able to have a parameter to decide how old your instances should be (ex.: use latest code vs code from a week ago). Why? Say you are running hundreds of Tiki instances. If a regression is introduced, it will hit all Tikis at once, which could be painful. Alternatively, you could have 10% of your instances which use the most recent code which users code from 10 days ago. Thus, if a regression is detected / reported via the 10% of instances, you have some time to react. Typically by putting the update process on hold until the regression is resolved.

Todos 

  • Make it better and commit to Tiki
    • Maybe add it to the existing svnup.sh script?
  • Add lock installer command
  • Double check the conflict detection

Keywords

The following is a list of keywords that should serve as hubs for navigation within the Tiki development and should correspond to documentation keywords.

Each feature in Tiki has a wiki page which regroups all the bugs, requests for enhancements, etc. It is somewhat a form of wiki-based project management. You can also express your interest in a feature by adding it to your profile. You can also try out the Dynamic filter.

Accessibility (WAI & 508)
Accounting
Administration
Ajax
Articles & Submissions
Backlinks
Banner
Batch
BigBlueButton audio/video/chat/screensharing
Blog
Bookmark
Browser Compatibility
Calendar
Category
Chat
Comment
Communication Center
Consistency
Contacts Address book
Contact us
Content template
Contribution
Cookie
Copyright
Credits
Custom Home (and Group Home Page)
Database MySQL - MyISAM
Database MySQL - InnoDB
Date and Time
Debugger Console
Directory (of hyperlinks)
Documentation link from Tiki to doc.tiki.org (Help System)
Docs
DogFood
Draw
Dynamic Content
Preferences
Dynamic Variable
External Authentication
FAQ
Featured links
Feeds (RSS)
File Gallery
Forum
Friendship Network (Community)
Gantt
Group
Groupmail
Help
History
Hotword
HTML Page
i18n (Multilingual, l10n, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
jQuery
Kaltura video management
Karma
Live Support
Logs (system & action)
Lost edit protection
Mail-in
Map
Menu
Meta Tag
Missing features
Visual Mapping
Mobile
Mods
Modules
MultiTiki
MyTiki
Newsletter
Notepad
OS independence (Non-Linux, Windows/IIS, Mac, BSD)
Organic Groups (Self-managed Teams)
Packages
Payment
PDF
Performance Speed / Load / Compression / Cache
Permission
Poll
Profiles
Quiz
Rating
Realname
Report
Revision Approval
Scheduler
Score
Search engine optimization (SEO)
Search
Security
Semantic links
Share
Shopping Cart
Shoutbox
Site Identity
Slideshow
Smarty Template
Social Networking
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Staging and Approval
Stats
Survey
Syntax Highlighter (Codemirror)
Tablesorter
Tags
Task
Tell a Friend, alert + Social Bookmarking
Terms and Conditions
Theme
TikiTests
Timesheet
Token Access
Toolbar (Quicktags)
Tours
Trackers
TRIM
User Administration
User Files
User Menu
Watch
Webmail and Groupmail
WebServices
Wiki History, page rename, etc
Wiki plugins extends basic syntax
Wiki syntax text area, parser, etc
Wiki structure (book and table of content)
Workspace and perspectives
WYSIWTSN
WYSIWYCA
WYSIWYG
XMLRPC
XMPP




Useful Tools