LDAPAccountManager / docker

Docker images for LAM
GNU General Public License v3.0
16 stars 3 forks source link

sed: can't read /etc/ldap-account-manager/config.cfg: No such file or directory #5

Open daletman opened 1 month ago

daletman commented 1 month ago

When I mount volumes to store config files outside I get the following error on startup:

sed: can't read /etc/ldap-account-manager/config.cfg: No such file or directory

I'm on macOS. I'm using the following docker-compose file:

services:
  lam:
    container_name: lam
    image: ghcr.io/ldapaccountmanager/lam:stable
    ports:
      - 8090:80
    env_file:
      - .env
    volumes:
      - ./data/lam/etc/:/etc/ldap-account-manager
      - ./data/lam/lib/:/var/lib/ldap-account-manager
gruberroland commented 1 month ago

Seems like your ./data/lam/etc is not having the config.cfg. You need to get the content of the config folder from the tar.bz2. Also, disable preconfiguration for docker (LAM_SKIP_PRECONFIGURE=true): https://github.com/LDAPAccountManager/lam/blob/develop/lam-packaging/docker/.env