Commit graph

4436 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
7718ed6000 [fix] Properly manage resolv.conf, dns resolvers and dnsmasq (#290)
* Adding resolvconf as dependency
* Adding new templates for dnsmasq
* Adding libnss-myhostname as dependency
* tableflip.gif
* Moar tableflip.gif :/
* Tweaking dns resolvers used by dnsmasq
* Adding Aquilenet + moving FDN back to top
* Clarifying how the resolv.dnsmasq.conf template is used
* Moving nsswitch force regen back to postinstall
2017-04-18 00:37:21 +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
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
Alexandre Aubin
86f0978dfb Cleaner postinstall logs during CA creation (#250) 2017-03-29 02:39:00 +02:00
opi
ce472696f5 [enh] ip6.yunohost is now served through HTTPS. 2017-03-22 08:31:47 +01: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
Laurent Peuch
373ef1acba Merge pull request #269 from YunoHost/clean-services.yml
Clean services.yml
2017-03-20 01:50:09 +01:00
Laurent Peuch
5e87438928 Merge pull request #272 from YunoHost/use-maindomain-helper
[enh] Use _get_maindomain helper.
2017-03-20 01:36:24 +01:00
opi
08760df0ec [fix] Regenerate SSOwat conf during main_domain operation. #672 2017-03-14 22:22:01 +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
7acf8bd5a7 Merge pull request #270 from YunoHost/ssowatconf-on-broken-install-fix-773
[fix] launch ssowatconf at the end of a broken install to avoid sso bad state
2017-03-11 14:40:55 +01:00
Alexandre Aubin
df2f26c607 [enh] Trigger exception during unit tests if string key aint defined (#261) 2017-03-11 03:11:39 +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
4db42fdeb7 [fix] if a service don't have a 'status' entry, don't list it 2017-03-07 00:30:57 +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
76a7a36c62 [enh] run hooks as root 2017-03-05 16:41:53 +01:00
Laurent Peuch
e1a5074c75 [fix] run missing backup scripts as root 2017-03-05 16:41:53 +01:00
Laurent Peuch
0122cbd432 [mod] remove unused import 2017-03-05 16:41:02 +01:00
Laurent Peuch
879417895b [enh] use root for app related hook_exec 2017-03-05 16:41:02 +01:00
Laurent Peuch
33e101b588 [mod] change behavior, admin by default, as to explicitly set root as user 2017-03-05 16:41:02 +01:00
Laurent Peuch
b0730d8463 [enh] defaulting running hook_exec as root 2017-03-05 16:41:02 +01:00
ljf (zamentur)
4b9e2ffbbc [fix] Can't use common.sh on restore operation (#246) 2017-02-27 16:52:35 +01:00
Laurent Peuch
8486f440fb [enh] Add unit test mechanism (#254) 2017-02-20 00:30:36 +01:00
Laurent Peuch
45e85fef82 Merge pull request #252 from ZeHiro/fix-785
[fix] handle the case where services[service] is set to null in the s…
2017-02-19 20:17:12 +01:00
Alexandre Aubin
834cf459dc Please Bram :D 2017-02-19 20:15:37 +01:00
M5oul
f80653580c Merge pull request #257 from YunoHost/fix_localhost_address_range
[fix] Any address in the range 127.0.0.0/8 is a valid loopback address
2017-02-17 14:20:13 +01:00
julienmalik
f291d11c84 [fix] cert-renew email headers appear as text in the body 2017-02-15 13:33:53 +01:00
julienmalik
accb78271e [fix] Any address in the range 127.0.0.0/8 is a valid loopback address 2017-02-15 13:20:58 +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
Alexandre Aubin
1d561123b6 [enh] Set main domain as hostname (#219) 2017-02-13 16:07:09 +01:00
Alexandre Aubin
0e55b17665 Fixing also get_conf_hashes 2017-02-12 18:49:59 -05:00
opi
f28be91b5d [fix] Uppercase global variable even in comment. 2017-02-12 21:25:04 +01:00
ZeHiro
5abcaadaea [fix] handle the case where services[service] is set to null in the services.yml. Fix #785 2017-02-12 12:18:55 +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
5be13fd07e Merge pull request #220 from YunoHost/conf-hashes-logs
[mod] Cleaner _get_conf_hashes logs
2017-02-03 14:55:49 +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