Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ | Rejoignez-nous sur le Chat 💬

Skip to content

configure data and conf dir

Data

  • Create a variable to configure data dir (default /data/var/www).
  • The role must create a symbolic link from this var to /var/www/

Conf

  • Create a variable to configure conf dir (default /data/etc/yunohost).
  • The role must create a symbolic link from this var to /etc/yunohost

Doing this before installing YNH

Ressources

See #17 (closed)

UPDATE 15/02/2022

After a complete refactoring of symbolic links following what is done here: https://gitlab.com/froggit/infra/-/blob/master/ansible/tasks/create_data_dir.yml I can't install Yunohost. It is stuck when SLAPD service (Open LDAP) is being installed

   "Setting up yunohost (4.3.6.2) ...",
    "  Backing up /etc/ldap/slapd.d in /var/backups/slapd-2.4.47+dfsg-3+deb10u6... done.",
    "  Moving old database directory to /var/backups:",
    "  - directory unknown... done.",
    "  Creating initial configuration... done.",
    "  Creating LDAP directory... done.",
    "  Initializing LDAP with YunoHost DB structure",
    "Job for slapd.service failed because the control process exited with error code.",
    "See \"systemctl status slapd.service\" and \"journalctl -xe\" for details.",
    "dpkg: error processing package yunohost (--configure):",
    " installed yunohost package post-installation script subprocess returned error exit status 1",
    "Errors were encountered while processing:",
    " yunohost",
    "E: Sub-process /usr/bin/dpkg returned an error code (1)",
    "[\u001b[1m\u001b[34mINFO\u001b[0m] Installation logs are available in /var/log/yunohost-installation_20220215_154346.log"

Symbolic links must have strictly identical rights to real files.

The script that performs Yunohost installation is here: https://github.com/YunoHost/yunohost/blob/140e50253fac0d3c9aa6fcab9e392a462c914e98/hooks/conf_regen/06-slapd

UPDATE 16/02/2022

After a good night sleep it's working flawlessly!

Edited by Arthur BOUDREAULT
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information