# \[Packageur en herbe\] packaging application YesWiki

**URL:** <https://forum.yunohost.org/t/packageur-en-herbe-packaging-application-yeswiki/10962>\
**Category:** Apps packaging\
**Tags:** french, english\
**Created:** [April 15, 2020, 9:24pm UTC](https://forum.yunohost.org/t/packageur-en-herbe-packaging-application-yeswiki/10962 "2020-04-15T21:24:52Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![tituspijean](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tituspijean/32/3584_2.png) [@tituspijean](https://forum.yunohost.org/u/tituspijean)\
**Post date:** [April 19, 2020, 6:32pm UTC](https://forum.yunohost.org/t/packageur-en-herbe-packaging-application-yeswiki/10962/21 "2020-04-19T18:32:14Z")

</div>

If you install your app with `--debug`, you can see that the form page is returned by curl. I seems it ignored the data you passed…

---

<div class="post-metadata">

**Author:** ![Plumf](https://forum.yunohost.org/user_avatar/forum.yunohost.org/plumf/32/7174_2.png) [@Plumf](https://forum.yunohost.org/u/Plumf)\
**Post date:** [April 19, 2020, 7:04pm UTC](https://forum.yunohost.org/t/packageur-en-herbe-packaging-application-yeswiki/10962/22 "2020-04-19T19:04:20Z")

</div>

So Curl’s configuration is correct? I’m trying it without debugging.

---

<div class="post-metadata">

**Author:** ![Plumf](https://forum.yunohost.org/user_avatar/forum.yunohost.org/plumf/32/7174_2.png) [@Plumf](https://forum.yunohost.org/u/Plumf)\
**Post date:** [April 19, 2020, 9:24pm UTC](https://forum.yunohost.org/t/packageur-en-herbe-packaging-application-yeswiki/10962/23 "2020-04-19T21:24:25Z")

</div>

Hi, j’ai tenté une installation sans `--debug` et après avoir remis mon serveur virtuel à un snapshot précédent l’installation de toute application et malheureusement le problème reste le meme. Yeswiki me ramene sur la page d’installation en mode formulaire web…

---

<div class="post-metadata">

**Author:** ![Maniack\_Crudelis](https://forum.yunohost.org/user_avatar/forum.yunohost.org/maniack_crudelis/32/13_2.png) [@Maniack\_Crudelis](https://forum.yunohost.org/u/Maniack_Crudelis)\
**Post date:** [April 19, 2020, 10:59pm UTC](https://forum.yunohost.org/t/packageur-en-herbe-packaging-application-yeswiki/10962/24 "2020-04-19T22:59:03Z")

</div>

```auto
ynh_local_curl "/?PagePrincipale&installAction=install" "config[default_language]=$language" "config[wakka_name]=MyYunoHostWiki" \
        "config[root_page]=PagePrincipale" "config[mysql_host]=localhost" \
        "config[mysql_database]=$app" "config[mysql_user]=$db_user" "config[mysql_password]=$db_pwd" "config[table_prefix]=yeswiki_" \
        "admin_name=$admin" "admin_password=$password" "admin_password_conf=$password" \
        "admin_email=$admin@$domain" "submit=Continue"

```

`submit=Continue` instead of `submit=Continuer`  
And a lot of post requests are on `config[name]` instead of `name`

I used the Inspector of Firefox (Web developer tool) to see the exact name of the fields.

---

<div class="post-metadata">

**Author:** ![Plumf](https://forum.yunohost.org/user_avatar/forum.yunohost.org/plumf/32/7174_2.png) [@Plumf](https://forum.yunohost.org/u/Plumf)\
**Post date:** [April 20, 2020, 9:33am UTC](https://forum.yunohost.org/t/packageur-en-herbe-packaging-application-yeswiki/10962/25 "2020-04-20T09:33:27Z")

</div>

Yet what I observe with firefox tools is “Continuer”. (Cf. Snapshot) or I’m looking at the wrong tool.  
Edit : With new test by changing Continuer with Continue → it’s the same error…

 ![capture_yyunohost](https://forum.yunohost.org/uploads/default/original/2X/2/2f80400129e730bb23b661c833477eefbc9d1e54.png)

This is the solution :

> `config[name]`

How determinate `config[name]` and why not at `admin_name` or `admin_email` ?

Thanks for all @Maniack_Crudelis & @tituspijean

---

<div class="post-metadata">

**Author:** ![Maniack\_Crudelis](https://forum.yunohost.org/user_avatar/forum.yunohost.org/maniack_crudelis/32/13_2.png) [@Maniack\_Crudelis](https://forum.yunohost.org/u/Maniack_Crudelis)\
**Post date:** [April 20, 2020, 10:09am UTC](https://forum.yunohost.org/t/packageur-en-herbe-packaging-application-yeswiki/10962/26 "2020-04-20T10:09:17Z")

</div>

If the value for submit depend of the locale, it’s going to be a problem…  
Hope it works anyway

---

<div class="post-metadata">

**Author:** ![Plumf](https://forum.yunohost.org/user_avatar/forum.yunohost.org/plumf/32/7174_2.png) [@Plumf](https://forum.yunohost.org/u/Plumf)\
**Post date:** [April 20, 2020, 10:32am UTC](https://forum.yunohost.org/t/packageur-en-herbe-packaging-application-yeswiki/10962/27 "2020-04-20T10:32:39Z")

</div>

If you speak to submit it’s not a probleme for installation I copied your works and it’s good for my french system.

---

<div class="post-metadata">

**Author:** ![Plumf](https://forum.yunohost.org/user_avatar/forum.yunohost.org/plumf/32/7174_2.png) [@Plumf](https://forum.yunohost.org/u/Plumf)\
**Post date:** [April 20, 2020, 3:39pm UTC](https://forum.yunohost.org/t/packageur-en-herbe-packaging-application-yeswiki/10962/28 "2020-04-20T15:39:36Z")

</div>

**Next step**  
I add user groupe configuration and despite this in log there this `WARNING` :

```auto
 DEBUG - + yunohost user permission update yeswiki.main --add visitors
2020-04-19 12:17:09,393: DEBUG - allowed:
2020-04-19 12:17:09,398: WARNING - Le groupe 'visitors' a déjà l'autorisation 'yeswiki.main' activée
2020-04-19 12:17:09,409: DEBUG - - visitors
2020-04-19 12:17:09,411: WARNING - Cette autorisation est actuellement accordée à tous les utilisateurs en plus des autres groupes. Vous voudrez probablement soit supprimer l'autorisation 'all_users', soit supprimer les autres groupes auxquels il est actuellement autorisé.
2020-04-19 12:17:09,413: DEBUG - - all_users
2020-04-19 12:17:09,418: WARNING - L'autorisation n'a pas été mise à jour car les demandes d'ajout/suppression correspondent déjà à l'état actuel.
2020-04-19 12:17:09,422: DEBUG - corresponding_users:
2020-04-19 12:17:09,423: DEBUG - - serveruser
2020-04-19 12:17:09,424: DEBUG - - serveradmin

```

(ref : [log](https://paste.yunohost.org/ohahobupep))  
It’s a problems or not ?

**Secondo**  
I tried to activate fail2ban with the new users configuration and I have a problem who stop installation. And I don’t understand this … (line 1669 [log](https://paste.yunohost.org/iqafisilin))

Thanks for your help

---

<div class="post-metadata">

**Author:** ![tituspijean](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tituspijean/32/3584_2.png) [@tituspijean](https://forum.yunohost.org/u/tituspijean)\
**Post date:** [April 20, 2020, 3:56pm UTC](https://forum.yunohost.org/t/packageur-en-herbe-packaging-application-yeswiki/10962/29 "2020-04-20T15:56:40Z")

</div>

> [@Plumf](#):
>
> **Secondo**  
> I tried to activate fail2ban with the new users configuration and I have a problem who stop installation. And I don’t understand this … (line 1669 [log](https://paste.yunohost.org/iqafisilin))

[Line 338](https://github.com/Plumf/yeswiki_ynh/blob/8638cfb21fc45d109a35813614669c48a555cfac/scripts/install#L338): You left `ynh_add_fail2ban_config --logpath="/var/log/nginx/${domain}-error.log" --failregex="Regex to match into the log for a failed login"` as is, so fail2ban tries to check `Regex to match into the log for a failed login` as a regex in the log.

---

<div class="post-metadata">

**Author:** ![Plumf](https://forum.yunohost.org/user_avatar/forum.yunohost.org/plumf/32/7174_2.png) [@Plumf](https://forum.yunohost.org/u/Plumf)\
**Post date:** [April 20, 2020, 4:43pm UTC](https://forum.yunohost.org/t/packageur-en-herbe-packaging-application-yeswiki/10962/30 "2020-04-20T16:43:47Z")

</div>

These lines are there by default (at least in the application example repository). I’m sorry but I don’t know what it’s for and what to do with it. Should I delete it entirely ?

---

<div class="post-metadata">

**Author:** ![tituspijean](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tituspijean/32/3584_2.png) [@tituspijean](https://forum.yunohost.org/u/tituspijean)\
**Post date:** [April 20, 2020, 5:20pm UTC](https://forum.yunohost.org/t/packageur-en-herbe-packaging-application-yeswiki/10962/31 "2020-04-20T17:20:31Z")

</div>

All sections are not useful to all apps. Fail2ban is useful if the apps write in the logs when someone on some IP fails to log in. It is a nice addenda to ensure app safety, but it is not mandatory.

---

<div class="post-metadata">

**Author:** ![Plumf](https://forum.yunohost.org/user_avatar/forum.yunohost.org/plumf/32/7174_2.png) [@Plumf](https://forum.yunohost.org/u/Plumf)\
**Post date:** [April 20, 2020, 6:32pm UTC](https://forum.yunohost.org/t/packageur-en-herbe-packaging-application-yeswiki/10962/32 "2020-04-20T18:32:14Z")

</div>

In the same order is what I need `systemed` and how do I know that?

---

<div class="post-metadata">

**Author:** ![tituspijean](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tituspijean/32/3584_2.png) [@tituspijean](https://forum.yunohost.org/u/tituspijean)\
**Post date:** [April 20, 2020, 6:36pm UTC](https://forum.yunohost.org/t/packageur-en-herbe-packaging-application-yeswiki/10962/33 "2020-04-20T18:36:06Z")

</div>

`systemd` manages services, if your app deploys its own service (like its own server to serve a website, or a daemon, …). Here Yeswiki only needs a PHP service (already included with the PHP-FPM configuration), so `systemd` configuration is not needed.

---

<div class="post-metadata">

**Author:** ![Plumf](https://forum.yunohost.org/user_avatar/forum.yunohost.org/plumf/32/7174_2.png) [@Plumf](https://forum.yunohost.org/u/Plumf)\
**Post date:** [April 20, 2020, 6:42pm UTC](https://forum.yunohost.org/t/packageur-en-herbe-packaging-application-yeswiki/10962/34 "2020-04-20T18:42:13Z")

</div>

I guess YesWiki doesn’t need to be integrated as a service or logrotate anymore?

---

<div class="post-metadata">

**Author:** ![tituspijean](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tituspijean/32/3584_2.png) [@tituspijean](https://forum.yunohost.org/u/tituspijean)\
**Post date:** [April 20, 2020, 6:43pm UTC](https://forum.yunohost.org/t/packageur-en-herbe-packaging-application-yeswiki/10962/35 "2020-04-20T18:43:26Z")

</div>

That’s my feeling indeed.

---

<div class="post-metadata">

**Author:** ![Plumf](https://forum.yunohost.org/user_avatar/forum.yunohost.org/plumf/32/7174_2.png) [@Plumf](https://forum.yunohost.org/u/Plumf)\
**Post date:** [April 20, 2020, 6:46pm UTC](https://forum.yunohost.org/t/packageur-en-herbe-packaging-application-yeswiki/10962/36 "2020-04-20T18:46:58Z")

</div>

To find out exactly, I have to finemetn read the YesWiki documentation? Either a test of whether it works or not is enough? I don’t particularly think about this application, but for afterwards

---

<div class="post-metadata">

**Author:** ![tituspijean](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tituspijean/32/3584_2.png) [@tituspijean](https://forum.yunohost.org/u/tituspijean)\
**Post date:** [April 20, 2020, 6:52pm UTC](https://forum.yunohost.org/t/packageur-en-herbe-packaging-application-yeswiki/10962/37 "2020-04-20T18:52:15Z")

</div>

Yes indeed, reading the apps’ documentation can inform you on how they are built and what they require. In the case of Yeswiki, they state:

> YesWiki can be installed in about ten minutes on a server which supports PHP \>= 5.3 and a MySQL database. Once installed, the YesWiki site is working immediately, and can be managed online from a web browser.

It is a good giveaway that you only need to setup PHP and the DB with YunoHost. 😉  
But trial-and-error is also another way to build the scripts step-by-step.

---

<div class="post-metadata">

**Author:** ![Plumf](https://forum.yunohost.org/user_avatar/forum.yunohost.org/plumf/32/7174_2.png) [@Plumf](https://forum.yunohost.org/u/Plumf)\
**Post date:** [April 20, 2020, 9:22pm UTC](https://forum.yunohost.org/t/packageur-en-herbe-packaging-application-yeswiki/10962/38 "2020-04-20T21:22:26Z")

</div>

Après quelques efforts et un grand coup de main de votre part l’application semble fonctionner correctement. J’ai éliminé les morceaux de codes qui ne servait à rien. J’ai effectué plusieurs tests manuels et ça semble bien fonctionner. Demain j’essayerais package\_check pour controler avant publication d’un premier package. 😄

Merci encore des coups de mains, relectures et conseils @Maniack_Crudelis & @tituspijean

---

<div class="post-metadata">

**Author:** ![Plumf](https://forum.yunohost.org/user_avatar/forum.yunohost.org/plumf/32/7174_2.png) [@Plumf](https://forum.yunohost.org/u/Plumf)\
**Post date:** [April 23, 2020, 10:55am UTC](https://forum.yunohost.org/t/packageur-en-herbe-packaging-application-yeswiki/10962/39 "2020-04-23T10:55:31Z")

</div>

Bonjour à tous & toutes, deux petit problemes identifiés suite au packaging de YesWiki :

1. Durant mon travail de packaging, les développeurs de YesWiki ont sorti une nouvelle version. Dans leur dépot le précédent dossier compresser à été supprimé et remplacé par le nouveau. Ce qui a eu pour conséquence de rendre le téléchargement de l’apps non fonctionnel. Quel solution à cela ? Avez des conseils ?  
Pour le moment je penses à deux solutions :

2. Lors du “cleanage” du code du paquet en supprimant les `--time` j’ai tenté de me fier à l’installation sur mon serveur virtuel pour déterminer le `--weight` mais à chaque installations des différences sont présentes. Avez vous une solution ou une méthode pour juger au mieux ? Et qu’elle est l’importance de ce paramètre ?

---

<div class="post-metadata">

**Author:** ![Maniack\_Crudelis](https://forum.yunohost.org/user_avatar/forum.yunohost.org/maniack_crudelis/32/13_2.png) [@Maniack\_Crudelis](https://forum.yunohost.org/u/Maniack_Crudelis)\
**Post date:** [April 23, 2020, 10:58am UTC](https://forum.yunohost.org/t/packageur-en-herbe-packaging-application-yeswiki/10962/40 "2020-04-23T10:58:54Z")

</div>

I do not read inclusive writing…

[Previous page](https://forum.yunohost.org/t/packageur-en-herbe-packaging-application-yeswiki/10962.md?page=1)

[Next page](https://forum.yunohost.org/t/packageur-en-herbe-packaging-application-yeswiki/10962.md?page=3)
