Commit Graph

21 Commits

Author SHA1 Message Date
Marien Fressinaud
13cf8b5f9f Improve hook calls and add post_update hook
- To the hook is associated a method signature (OneToOne or NoneToNone for now) so
  it is easier to call hooks correctly
- post_update hook is called during the post update moment.
2015-01-15 12:02:42 +01:00
Marien Fressinaud
556f4ad4bf Remove restriction of 1h for update checking 2015-01-15 11:20:16 +01:00
Marien Fressinaud
e7c24b5d41 Show the version number during update process.
Number is stored inside the data/last_update.txt file and shown if there
is an update script.

See https://github.com/FreshRSS/FreshRSS/issues/699
2015-01-13 12:02:35 +01:00
Marien Fressinaud
59fc73baa9 Fix i18n for update and user controllers 2014-12-11 19:32:59 +01:00
Marien Fressinaud
58deab37cd Fix Minz_Error::error() -> use default values 2014-10-30 19:57:08 +01:00
Marien Fressinaud
9478d2f011 Add do_post_update support 2014-10-30 12:43:52 +01:00
Marien Fressinaud
7080a32650 Add checking installation feature 2014-10-20 11:54:31 +02:00
Marien Fressinaud
6009990935 Introduce FreshRSS_Auth::hasAccess('admin')
Replace Minz_Configuration::isAdmin($user). FreshRSS_Auth::hasAccess() could
be extended to others scopes later.

See https://github.com/marienfressinaud/FreshRSS/issues/655
2014-10-07 10:16:38 +02:00
Marien Fressinaud
79aa5beaf4 Refactor authentication system.
Big work, not finished. A lot of features have been removed.

See https://github.com/marienfressinaud/FreshRSS/issues/655
2014-10-06 23:29:20 +02:00
Marien Fressinaud
3b8c381689 No cache for update system
See https://github.com/marienfressinaud/FreshRSS/issues/616
2014-09-17 13:37:39 +02:00
Marien Fressinaud
a3b5e72729 Move button to apply update outside the message 2014-09-17 13:26:32 +02:00
Marien Fressinaud
a4e43e9c53 Message if last update checking is close
last_update.txt is updated even if there is no update
If last_update.txt has been modified during last hour, show a message

See https://github.com/marienfressinaud/FreshRSS/issues/480#issuecomment-55765373
2014-09-16 18:30:24 +02:00
Marien Fressinaud
098f5e6d74 Log error if update.freshrss.org is unreachable 2014-09-12 21:10:45 +02:00
Marien Fressinaud
213bc2b9dd Check if update has been done during last minute
Cancel check action if update has been done during last hour.
2014-09-12 21:07:53 +02:00
Marien Fressinaud
d59eebf542 Add data/last_update.txt
Remember last update timestamp.
2014-09-08 20:07:09 +02:00
Marien Fressinaud
48f91da2e5 Check FRESHRSS_PATH is writable.
FRESHRSS_PATH needs to be writable before performing update.
2014-09-08 19:52:21 +02:00
Marien Fressinaud
909d8747ba Update system now uses HTTPS connection
- Add some curl checks
- Refactor code
2014-08-12 20:15:46 +02:00
Marien Fressinaud
3ca8c7ec4c Litlle improvements (update system)
- Check UPDATE_FILENAME exists before applying update
- Add empty line at the end of files
2014-08-10 11:52:18 +02:00
Marien Fressinaud
9a5d6245fb Improve update API
Update script must implement 4 functions:
- apply_update() to perform the update (most important). Return true if
  all is ok, else false.
- need_info_update() returns true if we need more info for update, else
  false. If this function always returns false, you don't need to
  implement following functions (but it's better to not forget)
- ask_info_update() should be a HTML form to ask infos. Method must be
  post and action must point to _url('update', 'apply') (or leave it
  blank)
- save_info_update() is called for POST requests (to save form from
  ask_info_update())
2014-08-10 10:55:51 +02:00
Marien Fressinaud
7ed111b1bf Add translations for update system 2014-08-10 10:35:17 +02:00
Marien Fressinaud
e7dba0ce7c Add basic system of update
- Check on update.freshrss.org for new updates
- Download script
- Apply script
- Need translations and verifications

NOTE: current script on server indicates version 0.7.3 is an update
of 0.8-dev ==> IT'S ONLY FOR MY TESTS!

Script just does a backup of ./data actually...

See https://github.com/marienfressinaud/FreshRSS/issues/411
2014-08-09 23:29:13 +02:00