Commit graph

31 commits

Author SHA1 Message Date
Kay0u
dd5699ee40
use ynh_port_available in ynh_find_port 2020-04-25 01:03:33 +02:00
Maniack Crudelis
b3b0aef047
Long arguments for ynh_validate_ip6
Co-Authored-By: Kayou <pierre@kayou.io>
2020-04-24 23:45:43 +02:00
Maniack Crudelis
67785edb1c
Long arguments for ynh_validate_ip4
Co-Authored-By: Kayou <pierre@kayou.io>
2020-04-24 23:45:22 +02:00
Maniack Crudelis
03379007b4 Update YunoHost version requirements 2020-04-21 14:48:52 +02:00
Maniack Crudelis
3b653994c7 Standardize helper comments 2020-04-20 20:58:17 +02:00
Maniack Crudelis
3442ab5b80 Add internal flags 2020-04-20 15:21:11 +02:00
Maniack Crudelis
b0398ae6dc Use long arguments instead of short ones 2020-04-20 15:20:31 +02:00
Maniack Crudelis
80964a1312 Standardize tabulations 2020-04-19 20:03:55 +02:00
Maniack Crudelis
1dd4a73e17 Replace declare -Ar by local A for args_array 2020-04-19 19:10:39 +02:00
Alexandre Aubin
be303f3e44 Fix ynh_find_port grep
Co-Authored-By: Kayou <pierre.moltess@gmail.com>
2020-04-01 02:21:09 +02:00
Alexandre Aubin
97e83337d4 Update network 2020-04-01 02:21:09 +02:00
Alexandre Aubin
041d5ce684
Merge branch 'stretch-unstable' into remove-deprecated-helpers 2019-11-14 17:26:13 +01:00
Alexandre Aubin
a89fd44ab6 Use ss instead of netcat to check if a port is already used ... c.f. PR #827 2019-11-08 23:07:06 +01:00
Rafi59
89ab4bd4dc
Use ss instead of netstat 2019-10-26 13:25:38 +02:00
Kayou
6cd12d450a
Update data/helpers.d/network
Co-Authored-By: Alexandre Aubin <alex.aubin@mailoo.org>
2019-10-25 19:55:33 +09:00
Kayou
7c95b8d508
fix find udp port 2019-10-25 19:39:02 +09:00
Alexandre Aubin
ee67ebfd86 Remove deprecated helpers while still supporting them through hacky patching... 2019-08-18 01:40:48 +02:00
Alexandre Aubin
3c22feb0cb Move string normalization helpers to 'string' 2019-04-25 20:19:04 +02:00
Alexandre Aubin
73b1ff169f Move ynh_webpath_available/register to setting 2019-04-25 20:14:52 +02:00
Alexandre Aubin
23e31daf64 Merge 'ip' in 'network' ... 2019-04-25 20:13:35 +02:00
Alexandre Aubin
a9761d356b Update script to automatically generate helper documentation 2019-04-08 18:59:04 +02:00
Maniack Crudelis
873bf4ae37 Add min version for all helpers 2019-02-25 18:44:21 +01:00
Maniack Crudelis
976f160afb Fix getopts and its legacy mode 2019-01-04 17:11:49 +01:00
Maniack Crudelis
43e4a34d21
Use getopts helpers in network 2018-12-29 18:51:21 +01:00
Maniack Crudelis
a701b42519
Use getopts for network's helpers 2018-12-21 20:40:02 +01:00
Maniack Crudelis
3a3ec7d9b5 [fix/enh] Use local variables 2017-12-17 20:26:52 +01:00
Maniack Crudelis
3571747718 Nouveau helper ynh_webpath_available et ynh_webpath_register (#235)
* Nouveau helper ynh_path_validity
Simplement un wrapper de yunohost app checkurl.
Peut-être une occasion de lui donner un autre nom plus parlant.
Il me semble justement qu'il en était question.
Conflicts:
	data/helpers.d/network
* Renaming ynh_path_validity to ynh_webpath_available
* Splitting domain and path
* Use the new url-available command instead of deprecated checkurl
* Adding ynh_webpath_register
* [enh] Check before register
- Need to be tested.
- And... probably lack a echo to inform in case of error.
* Fixing helper following discussion with Maniack
2017-05-06 16:53:54 +02: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
901e3df9b6 Pas de correction de l'argument 2017-01-23 15:18:52 +01:00
Maniack Crudelis
cd93427a97 Retire la commande ynh 2017-01-23 15:17:13 +01:00
Maniack Crudelis
3e9d086f7f Nouveau helper ynh_find_port
Nouveau helper pour trouver un port libre.

Déclinaison du code classique avec une vérification préalable de l'argument.
2017-01-22 20:01:27 +01:00