Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create sqlite database file if it does not exist #386

Closed
wants to merge 1 commit into from

Commits on Oct 13, 2023

  1. create sqlite database file if it does not exist

    When a volume mount is used for /var/wwww/wallabag/data, as
    documented[^1], the container fails to start with the error messages:
    
        wc: /var/www/wallabag/data/db/wallabag.sqlite: No such file or directory
        Configuring the SQLite database ...
        In ExceptionConverter.php line 76:
          An exception occurred in the driver: SQLSTATE[HY000] [14] unable to
          open database file
        [..]
    
    In the volume mount the db directory and the empty db/wallabag.sqlite do
    not exist which causes the issue.
    
    Check in the entrypoint script if the file exist, if it does not create
    the db directory and the file and make nobody the owner.
    
    This fixes: wallabag#316
    
    [^1]:https://github.com/wallabag/docker/tree/96dd9bc3e3d12b216471db03f5afacd6d1afac61#sqlite
    fho committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    90404dd View commit details
    Browse the repository at this point in the history