Commit graph

198 commits

Author SHA1 Message Date
Laurent Peuch
1516f48699 [enh] Allow applications to ship a script to change its url (#185)
* [enh] add app_change_url
* [fix] avoid unecessary io and reuse already existing variable
* [fix] bad comment
* [fix] another bad comment
* [fix] I need to be able to call yunohost during change_url scripts
* [mod] global variables are now uppercased
* [mod] compress condition
* [enh] don't change_url if old/new domain_path are identical
* [mod] i18n
* [enh] ensure that nginx doesn't failed at the end of change_url
* [fix] forgot to call this damn m18n
* [mod] m18n
* [enh] ask and requires new domain/path for change_url
* [fix] missing translation key
* [mod] ordering
* [mod] lisibility
* [enh] avoid common mistakes
* [fix] check_output is annoying
* [fix] locale: typo.
* Adding changeurl unit test draft
* [mod] remove useless imports
* [mod] style
* [mod] change_url -> changeurl
* Moving comment about checkurl near checkurl call
* Normalize new path and domain format
* Adding test about trying to changeurl to same url
* Internationalizing change app success message
* Removing 'trimed' stuff
* Moving check for change_url script at beginning of function
* Use _run_service_command to reload nginx
* Changing changeurl back to change-url, gomennasai :s
2017-04-18 00:38:40 +02:00
Alexandre Aubin
5820f79772 [fix] Properly define app upgradability / Fix app part of tools update (#255)
* Adding a 'upgradable' attribute directly in app_info
Conflicts:
	src/yunohost/app.py
	src/yunohost/tools.py
* Fixing a few weird stuff from cherry-picking
2017-04-16 16:51:03 +02:00
Alexandre Aubin
f646fdf272 [fix] Split checkurl into two functions : availability + booking (#267)
* Splitting checkurl into two functions, one to check availability, the other for booking
* [fix] move import at file's beginning.
* Rename bookurl to registerurl
* Set registerurl as a PUT request for the api
* urlavailable returns a boolean now
* Revert moving import to top of file :/
* Have domain and path as separate arguments
* Flagging checkurl as deprecated in the actionmap
* Adding unit tests for registerurl and related
* Using built-in deprectation mechanism of Moulinette
* Using - separator in names + moving url-available to domain
* Returning directly a bool in url-available
2017-04-16 16:47:51 +02:00
Jean-Baptiste
804daf63bf rewrite proposal for certmanager_http_check_timeout
hairpinning is the answer to the problem, not the problem itself. We should probably rewrite the whole sentence, but to keep it simple, let's just add it is an issue related to hairpinning.
2017-04-09 16:03:02 +02:00
Jean-Baptiste
f8ace3153a new text proposal "appslist_retrieve_bad_format"
Fix: https://dev.yunohost.org/issues/895
2017-04-08 11:30:21 +02:00
Laurent Peuch
a4c487a0aa [enh] Refactor applist management (#160)
* [mod] directly use python to retreive json list

* [enh] app_fetchlist fetch all app_list by default

* [fix] name variable doesn't exists here

* [fix] re returns None when there is not matchs

* [enh] app_fetchlist fetch all app_list by default

* Some cleaning for better readability

* Simpler variable name

* Prepare a function that register lists to be fetched

* Skeletong for applist system migration

* Add implementation of migration system with tests

* Refactorize app_fetchlist

* Misc fixes + adding test for single app fetching

* Fixing a few issues + test removelist

* Adding fetchlist and cron install during postinstall

* Adding debug messages

* Adding particular exception for SSL connection error

* Update actionmap help

* We don't use urlretrieve

* Clean tests, some description were bad

* [mod] some cleaning

* Moving to a .json file to store lists url + adjusting tests

* Adding missing string in locale

* Moving exception to logger.error when fetching fails

* Adding name of applist in error messages

* Fixing cron job stuff + adding proper tests

* Using None instead of -1 for applist lastupdate

* Handling exceptions when writing applist files

* More exception handling...

* [mod] pep8

* Updating test for migration of conflicting lists

* More general error when return code is not 200

* [enh] Improve app_fetchlist help.

* [fix] Use appslist instead of applist.

* [fix] Consistent user string for translation.
2017-04-06 22:21:25 +02:00
Alexandre Aubin
86f0978dfb Cleaner postinstall logs during CA creation (#250) 2017-03-29 02:39:00 +02:00
Alexandre Aubin
5dc86e6dbf Mention limit of 30 characters in message 2017-03-28 01:33:20 +02:00
rokaz
347f33a61b [i18n] Translated using Weblate (English)
Currently translated at 100.0% (270 of 270 strings)
2017-02-20 16:41:22 +01:00
Alexandre Aubin
1d561123b6 [enh] Set main domain as hostname (#219) 2017-02-13 16:07:09 +01:00
Alexandre Aubin
a61445c9c3 Checking for 404 error and valid json format 2017-02-07 08:18:52 -05:00
Alexandre Aubin
991b64db92 Merge branch 'unstable' into clean_app_fetchlist 2017-02-06 19:01:27 +01:00
Alexandre Aubin
cd88428248 Implementing opi's comments 2017-01-25 18:38:30 -05:00
Alexandre Aubin
656b2e61ba Implement timeout exceptions 2017-01-25 12:03:30 -05:00
Laurent Peuch
a9675b01f7 Merge pull request #225 from YunoHost/fix-651-check-domain-resolved-locally
[fix] Adding check that domain is resolved locally for cert management
2017-01-08 05:32:45 +01:00
Alexandre Aubin
86f97d6f07 Changing the way to check domain is locally resolved 2017-01-04 13:05:57 -05:00
Alexandre Aubin
b829de7218 Adding check that domain is resolved locally for cert management 2017-01-03 09:36:33 -05:00
Alexandre Aubin
418c9b2736 Check acme challenge conf exists in nginx when renewing cert 2016-12-21 21:30:59 -05:00
Laurent Peuch
198bc51128 Merge pull request #198 from YunoHost/fix-618-custom-backup-directory
[fix] Correctly handle custom backup directory
2016-12-16 00:31:55 +01:00
likeitneverwentaway
64af6a1dbf [enh] List available domains when installing an app by CLI. 2016-12-12 10:32:29 +01:00
Laurent Peuch
413a426773 Merge pull request #186 from YunoHost/fix-640-cant-get-user-info
[fix] Can't get mailbox used space if dovecot is down
2016-12-12 00:15:48 +01:00
Laurent Peuch
fb8394a68e [mod] remove '.' at the end of a string 2016-12-11 14:21:20 +01:00
Laurent Peuch
c9bd7e8633 [mod] english typography/json format 2016-12-11 14:18:58 +01:00
Laurent Peuch
ba1357fb94 [mod] uniformise strings following jibec comment 2016-12-11 14:15:39 +01:00
opi
d121cff88a Merge branch 'testing' into unstable
Conflicts:
	locales/en.json
2016-12-11 09:31:53 +01:00
Alexandre Aubin
6aa64a071f Improving exception handling 2016-12-07 16:14:01 -05:00
Alexandre Aubin
731ff6f906 [fix] Refactoring tools_maindomain and disabling removal of main domain to avoid breaking things 2016-12-07 14:32:42 -05:00
Laurent Peuch
27cc0aac29 Merge pull request #170 from YunoHost/fix-ssowat-persistent-conf-error
[fix] Raise error on malformed SSOwat persistent conf.
2016-12-03 17:10:04 +01:00
Laurent Peuch
7ee6ab2fba [mod] implement opi's feedback 2016-12-03 11:38:37 +01:00
Laurent Peuch
7eb2c10426 Merge pull request #191 from alexAubin/fix-ldap-caching-on-postinstall
[fix] Fix ldap caching on postinstall, which might cause 'Unknown admin user'
2016-12-03 11:35:13 +01:00
Laurent Peuch
595f897261 [fix] implement opi's feedback 2016-12-03 11:34:46 +01:00
Alexandre Aubin
f6188405bc [fix] Fix the way name of self-CA is determined 2016-12-01 23:09:02 -05:00
Alexandre Aubin
6171fbdb03 Keep track of backups with custom directory using symlinks 2016-11-30 00:04:17 -05:00
Alexandre Aubin
f956fa7161 [enh] Adding check that user is actually created + minor refactor of ldap/auth init 2016-11-28 02:35:19 +01:00
Laurent Peuch
952040183e [mod] give instructions on how to solve the conf.json.persistant parsing error 2016-11-27 01:16:22 +01:00
Alexandre Aubin
195c675c59 More exception handling, this time for previous acme challenge conf already existing in nginx 2016-11-23 21:36:34 -05:00
ljf
dfbfc0cfc7 [fix] Can't get mailbos used space if dovecot is down 2016-11-24 02:55:59 +01:00
Alexandre Aubin
e66a708520 Misc tweaks on exceptions 2016-11-23 11:46:52 -05:00
Alexandre Aubin
a6353703bd Catching exceptions from acme-tiny 2016-11-22 22:24:54 -05:00
Alexandre Aubin
be061522e6 Moving full letsencrypt app conflict warning to locales/en.json 2016-11-22 20:32:33 -05:00
Alexandre Aubin
5de006f18d Follow up of @julienmalik comments - misc typo/cosmetic fixes 2016-11-21 10:58:57 -05:00
Laurent Peuch
99f0f761a5 [mod] include execption into appslist_retrieve_error message 2016-11-16 04:04:07 +01:00
Alexandre Aubin
109cbf7641 Backuping existing certificate (if any) also for self-signed generation 2016-11-08 22:22:13 -05:00
Alexandre Aubin
6bfe1c8083 Check that the DNS A record matches the global IP now using dnspython and FDN's DNS 2016-11-08 20:59:55 -05:00
Alexandre Aubin
4ddc3aac36 Display a warning message when letsencrypt is installed, suggesting commands to migrate 2016-11-08 12:09:02 -05:00
Laurent Peuch
917c230735 [mod] more pythonic and explicit tests with more verbose errors 2016-10-30 04:55:56 +01:00
Laurent Peuch
aff4dc4086 [mod] more verbose error 2016-10-30 04:46:35 +01:00
Alexandre Aubin
35fa386ce3 First draft of certificate management integration (e.g. Let's Encrypt certificate install) 2016-10-28 13:59:42 -04:00
opi
81e464ce1f [enh] Display full exception error message. 2016-08-28 23:36:45 +02:00
opi
d95052a9e9 [enh] Catch SSOwat persistent configuration write error. 2016-08-28 15:39:45 +02:00