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

Unable to separate runtime from installation #685

Closed
pilophae opened this issue Nov 18, 2022 · 0 comments
Closed

Unable to separate runtime from installation #685

pilophae opened this issue Nov 18, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@pilophae
Copy link

Describe the bug
I install Snappymail to /usr/share/snappymail using AUR in Archlinux. In order to keep runtime data in my web server directory /srv/http I then symlink all files from the installation directory except index.php and include.php which are manually copied.

This broke with commit 538f752 where it is assumed that APP_INDEX_ROOT_PATH and APP_VERSION_ROOT_PATH share a parent path, which they do not do for me. This means that the absolute path is used for resources, such as JS or CSS.

This is what my "variables" look like:

APP_INDEX_ROOT_PATH=/srv/http/mail.ayeon.org/htdocs/
APP_VERSION_ROOT_PATH=/usr/share/snappymail/snappymail/v/2.21.2/

To Reproduce

  1. Place index.php in some other directory than the installation directory.
  2. Symlink the other files to the same directory.

Expected behavior
The relative path to resources should be used when rendering HTML.

Please complete the following information:

  • Browser: N/A
  • IMAP daemon: N/A
  • PHP version: 8.1.12
  • SnappyMail Version: 2.21.2
@the-djmaze the-djmaze added the bug Something isn't working label Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants