Commit graph

405 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
ljf (zamentur)
c954429cca [fix] Avoid to remove a apt package accidentally (#292)
* [fix] Avoid to remove a apt package accidentally
* [fix] No need --no-remove option with apt update cmd
2017-04-06 15:34:17 +02:00
Maniack Crudelis
712e69d830 New helper ynh_local_curl (#288)
* New helper ynh_curl_abstract
Just an abstraction around curl command.
To prevent forgot arguments and simplify this difficult command.
* [enh] Switch args of ynh_curl_abstract
* [enh] Rename ynh_curl_abstract into ynh_local_curl
* Splitting the various key=value into several arguments
* Comment to clarify bash command
* Adding comment about $domain and $path_url
2017-04-06 15:33:56 +02:00
Maniack Crudelis
c31e4c5b0d New helper ynh_replace_string (#280)
* New helper ynh_substitute_char
Sed abstraction, and a way to use something other than sed.
I added also an escape of the delimiter used by sed, to prevent a fail in this case.
* Renaming to ynh_replace_string
* Renaming variable for clarity
2017-04-02 23:52:11 +02:00
ljf (zamentur)
11bcdabbc0 Merge pull request #273 from YunoHost/allow_underscore_backup
Allow underscore in backup name
2017-03-28 01:56:20 +02:00
JimboJoe
bb11168c31 Fix for missing YunoHost tiles (#276)
This PR:
- brings back [this PR](https://github.com/YunoHost/yunohost-config-nginx/pull/3/files) which seems to have stayed behind when migrating from `yunohost-config-nginx`. It fixes the missing tile for Jirafeau app (and maybe others).
- adds a fix to serve `ynhpanel.*` files whatever the app ningx rules are (some apps nginx conf files block them, like duniter or nextcloud).
2017-03-26 21:07:13 +02:00
opi
ce472696f5 [enh] ip6.yunohost is now served through HTTPS. 2017-03-22 08:31:47 +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
50188ae265 [fix] only remove a service if it is setted to null 2017-03-20 01:49:27 +01:00
Laurent Peuch
f941360edf Merge pull request #259 from YunoHost/upgrade_cipher_suit
[enh] upgrade ciphers suit to more secure ones
2017-03-20 01:35:11 +01:00
Laurent Peuch
6a0db24c5d Merge pull request #247 from YunoHost/equivs_helpers
[enh] New helpers for equivs use
2017-03-20 01:34:12 +01:00
ljf
8cba71b514 [fix] Apply cipher suite into webadmin nginx conf 2017-03-20 00:45:33 +01:00
Laurent Peuch
48238171b2 Merge pull request #248 from YunoHost/logrotate_helpers
[enh] New helpers for logrotate
2017-03-17 16:16:56 +01:00
Maniack Crudelis
9d44e1d84b [enh] New helper ynh_abort_if_errors (#245)
* New helper ynh_check_error

Helpers to implemente trap and set -eu.

Simply to use, you only add `ynh_check_error` in your script.

* Change helper's name

* Propagate new name in comments
2017-03-17 16:16:36 +01:00
Alexandre Aubin
5b9092d6df Rename ynh_app_dependencies to ynh_install_app_dependencies 2017-03-17 04:07:17 +01:00
Maniack Crudelis
5f3fcefc88 Prevent to rewrite the previous control file 2017-03-16 18:35:57 +01:00
Maniack Crudelis
6fbc6fa17d Nouveau helper ynh_normalize_url_path (#234)
* Nouveau helper ynh_check_path

Nouveau helper pour vérifier et corriger la syntaxe du path.
Et ça permet de passer le test "incorrect_path" de package check

* [fix] Bad comment

* path en argument et normalize

* Make commande more obvious

* Do not use path

* Adding behavior for / in the documentation
2017-03-16 04:58:34 +01:00
Maniack Crudelis
47dffca744 Allow underscore in backup name
Allow underscore in backup name, to allow backup with the name of multi-instance apps.

If there are no reason to avoid this character.
2017-03-15 23:51:12 +01:00
Maniack Crudelis
2bb32c26b6 Add app setting 2017-03-14 18:05:28 +01:00
Maniack Crudelis
5fcb8cd439 Remove use of deprecated helper 2017-03-14 16:34:07 +01:00
opi
0c01dd4dca Merge branch 'stable' into unstable. (#230 was merged into stable) 2017-03-14 16:29:09 +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
50cc3536ac [mod] remove offset/limit from app_list, they aren't used anymore 2017-03-13 23:51:37 +01:00
Maniack Crudelis
f2e656176e Failed if $1 not set
Because we use set -u, this helper failed if the optional arg is not set
2017-03-13 23:29:47 +01:00
Alexandre Aubin
f851817bbf Updating ciphers with recommendation from mozilla with modern compatibility 2017-03-12 20:58:45 -04:00
M5oul
9dc2c0cece Merge pull request #265 from YunoHost/dnsmasq_conf_mod
[fix] dnsmasq conf: remove 'resolv-file' line.
2017-03-07 10:32:05 +01:00
M5oul
9500b3d6a8 Merge pull request #264 from YunoHost/dnsmasq_conf_clean
[mod] dnsmasq conf: remove deprecated XMPP DNS record line.
2017-03-07 10:29:54 +01:00
Laurent Peuch
a18486df05 [enh] add other services to remove 2017-03-07 00:30:58 +01:00
Laurent Peuch
6d1c62d619 [fix] we don't use bind9, add null entry to remove it from old services.yml 2017-03-07 00:30:58 +01:00
Laurent Peuch
949e4de20a [fix] nsswitch and udisks2 aren't used anymore 2017-03-07 00:30:58 +01:00
Laurent Peuch
d7da9b4565 Merge pull request #260 from thardev/enh-691-show-fail2ban-logs-web
[enh] Show fail2ban logs on admin web interface
2017-03-06 15:57:18 +01:00
Moul
20378fc2fc [fix] dnsmasq conf: remove 'resolv-file' line.
- there is no file specified for this line.
- dns resolution isn't working on some cases:
- metronome could not works.
- https://forum.yunohost.org/t/xmpp-cant-connect-to-conference-yunohost-org/2142
2017-03-03 08:59:37 +01:00
Moul
eb5a7607e4 [mod] dnsmasq conf: remove deprecated XMPP DNS record line.
- https://serverfault.com/questions/582106/should-i-specify-the-srv-record-jabber-tcp
2017-03-03 08:36:20 +01:00
Maniack Crudelis
4dfde86e1a Fix ynh_remove_app_dependencies too... 2017-03-02 23:57:02 +01:00
Maniack Crudelis
7ade94e7e3 Fix ynh_app_dependencies
Double // pour remplacer toutes les occurrences de _
Ajout d'une virgule entre les dépendances.
2017-03-02 23:55:28 +01:00
thardev
ade8c59f0a show fail2ban logs on admin web interface 2017-02-27 20:31:04 +01:00
Laurent Peuch
cf3f0e8185 Merge pull request #230 from YunoHost/ynh_no_log
Hack dégueux pour éviter d'écrire dans le log cli
2017-02-26 19:35:27 +01:00
Laurent Peuch
087cdb961c [enh] upgrade ciphers suit to more secure ones 2017-02-25 22:04:52 +01:00
opi
088abd694e Merge branch 'testing' into unstable 2017-02-18 15:53:39 +01:00
opi
1c2de37f63 [fix] Update Rmilter configuration to fix dkim signing. 2017-02-18 14:52:33 +01:00
Laurent Peuch
5d3e1c9212 Merge pull request #233 from YunoHost/ynh_find_port
Nouveau helper ynh_find_port
2017-02-12 03:49:45 +01:00
Laurent Peuch
83dca8e7c6 Merge pull request #237 from YunoHost/ynh_system_user_create_delete
Nouveaux helpers ynh_system_user_create et ynh_system_user_delete
2017-02-12 03:49:02 +01:00
opi
8b44276af6 Merge branch 'testing' into unstable 2017-02-09 22:28:22 +01:00
ljf
cc77cd788d [fix] Permission issue on install of some apps 778 2017-02-09 22:26:31 +01:00
Maniack Crudelis
b062c014b0 Restore use of subshell 2017-02-09 18:35:18 +01:00
Maniack Crudelis
0989e27d58 Update package 2017-02-09 17:22:24 +01:00
Maniack Crudelis
12b223b2f5 [enh] New helpers for logrotate
Add and remove logrotate config
2017-02-09 00:02:47 +01:00
Maniack Crudelis
d98b5e036c [enh] New helpers for equivs use
- `ynh_package_remove` and `ynh_package_autoremove` were just moved up.
- Small modifications on `ynh_package_install_from_equivs`. Just added some comments and used popd instead of cd.
- Added `ynh_app_dependencies` to manage easily installation of dependencies with equivs
- And `ynh_remove_app_dependencies` to remove them.
2017-02-08 19:23:27 +01:00