Commit graph

806 commits

Author SHA1 Message Date
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
Alexandre Aubin
674d639530 [enh] Adding new port availability checker (#266)
* Adding new port availability checker in tools
* [fix] move import at file's beginning.
* Moving back import inside function
* Using boolean instead of Yes/No
* Using built-in depreciation mechanism in Moulinette
* We're now using boolean instead of yes/no
* Renaming to port-available
* Returning directly a boolean
2017-04-16 16:46:57 +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
M5oul
d00ed6cacf Merge pull request #188 from YunoHost/install_as_root
Use the root user for app installation
2017-03-20 21:17:35 +01:00
opi
6df7a896ef [enh] Use _get_maindomain helper. 2017-03-14 16:48:50 +01:00
Laurent Peuch
7f1a6118bf Merge pull request #194 from YunoHost/clean_app_list_a_bit
[mod] try to clean a bit app_list code
2017-03-14 00:36:28 +01:00
Laurent Peuch
4be2720cb0 [mod] implement ljf comment 2017-03-14 00:35:28 +01:00
Laurent Peuch
50cc3536ac [mod] remove offset/limit from app_list, they aren't used anymore 2017-03-13 23:51:37 +01:00
Laurent Peuch
8482e48f9f [fix] launch ssowatconf at the end of a broken install to avoid sso bad state 2017-03-07 02:07:09 +01:00
Laurent Peuch
02c974e8ca [mod] remove useless addition 2017-03-05 17:47:33 +01:00
Alexandre Aubin
cc9364f37e Trying to make offset / limit consistent 2017-03-05 17:47:33 +01:00
Alexandre Aubin
4deaed1c78 Trying to add comments and simplify some overly complicated parts 2017-03-05 17:47:33 +01:00
Laurent Peuch
db601a412d [mod] try to clean a bit app_list code 2017-03-05 17:34:37 +01:00
Laurent Peuch
879417895b [enh] use root for app related hook_exec 2017-03-05 16:41:02 +01:00
Laurent Peuch
cc44512539 Clean app upgrade (#193)
* [mod] current_app_dict == new_app_dict so test is always false

* [mod] simplify condition\n\nUntestedgit add -p

* [mod] useless variable

* [mod] rename variable

* [mod] app_dict can't be None (exception is raised instead)

* Adding debug message for upgrade

* Using app_list to list installed apps

* [mod] pep8

* [mod] please opi
2017-02-14 13:53:07 +01:00
opi
f28be91b5d [fix] Uppercase global variable even in comment. 2017-02-12 21:25:04 +01:00
Laurent Peuch
f6c7702dfa [mod] rename all global variables to uppercase 2017-02-12 03:34:15 +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
730156dd92 Using request insteqd of urlretrieve, to have timeout 2017-02-06 12:54:32 -05:00
Alexandre Aubin
5b006dbf0e Adding info/debug message for fetchlist 2017-02-06 08:37:41 -05:00
Laurent Peuch
3f22f15dd3 [fix] add timeout to fetchlist's wget 2016-12-18 23:57:56 +01:00
Laurent Peuch
eb1f6a77a9 Revert "Revert "[fix] Can't restore app on a root domain""
This reverts commit 7717c58de4.
2016-12-15 16:33:46 +01:00
Laurent Peuch
ac96f47fb0 Merge branch 'weblate-yunohost-yunohost' into unstable 2016-12-15 16:32:13 +01:00
Laurent Peuch
7717c58de4 Revert "[fix] Can't restore app on a root domain" 2016-12-12 19:18: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
f6648f360c [fix] don't remove trailing char if it's not a slash 2016-12-11 23:11:53 +01:00
Laurent Peuch
8bd130dc86 [mod] remove unused variable (pyflake) 2016-12-05 18:35:47 +01:00
Laurent Peuch
e910694179 Merge pull request #192 from YunoHost/install-no-remove-on-fail-option
Install no remove on fail option
2016-12-03 23:08:40 +01: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
110d481cd1 [mod] remove unused imports 2016-12-03 12:00:55 +01:00
Zamentur aka ljf
2cd18d8786 [fix] Support git ynh app with submodules #533 (#174) 2016-11-30 18:26:40 +01:00
Laurent Peuch
34ca628624 Merge pull request #180 from alexAubin/certmanager
[enh] Certificate management integration (e.g. Let's Encrypt ...)
2016-11-28 15:45:44 +01:00
Laurent Peuch
a7289c447a [fix] typo 2016-11-28 15:38:19 +01:00
Alexandre Aubin
dc731c3af5 Using a single generic skipped regex for acme challenge in ssowat conf 2016-11-22 20:13:39 -05:00
ljf
da7728fe74 [fix] Can't restore app on a root domain 2016-11-17 12:54:39 +01:00
Laurent Peuch
99f0f761a5 [mod] include execption into appslist_retrieve_error message 2016-11-16 04:04:07 +01:00
Laurent Peuch
2aab7bdf1b [mod] simplify code 2016-11-16 04:00:47 +01:00
Laurent Peuch
97128d7d63 [mod] exception should only be used for exceptional situations and not when buildin functions allow you to do the expected stuff 2016-11-16 04:00:47 +01:00
Laurent Peuch
d9081bddef [mod] directly use python to retreive json list 2016-11-16 04:00:47 +01:00
Laurent Peuch
c4cecfcea5 [mod] use python instead of os.system 2016-11-16 04:00:47 +01:00
Laurent Peuch
cf3e28786c [mod] remove useless line 2016-11-16 04:00:47 +01:00
Laurent Peuch
a1b42e65f8 [mod] remove useless variables 2016-10-30 13:49:40 +01:00
Laurent Peuch
02fc92d210 [mod] pep8 2016-10-30 04:27:12 +01:00
Laurent Peuch
32bf742367 [mod] trailing spaces 2016-10-30 04:25:23 +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
Moul
76a294b284 [fix] typo: install filed –> failed. 2016-10-12 09:39:05 +02:00
Laurent Peuch
81c19cd1d6 [enh] no cli option to avoid removing an application on installation failure 2016-10-09 21:34:03 +02: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