Commit graph

6 commits

Author SHA1 Message Date
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