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

Update initialization script to create media directories #479

Merged
merged 2 commits into from
Jan 5, 2025

Conversation

nick322
Copy link

@nick322 nick322 commented Jan 3, 2025

  • Added creation of new directories: backups, profile, upload, thumbs, and encoded-video within ${IMMICH_MEDIA_LOCATION}.

  • Ensured proper permissions are set for the new directories to maintain consistency.

  • The command

chown -R abc:abc \
    "${IMMICH_MEDIA_LOCATION}" \
    "${IMMICH_MEDIA_LOCATION}"/*

processes ${IMMICH_MEDIA_LOCATION}/library twice. If there are many files inside, it can significantly slow down the startup process.

- Added creation of new directories: `backups`, `profile`, `upload`, `thumbs`, and `encoded-video` within `${IMMICH_MEDIA_LOCATION}`.
- Ensured proper permissions are set for the new directories to maintain consistency.
The command

```bash

chown -R abc:abc \
    "${IMMICH_MEDIA_LOCATION}" \
    "${IMMICH_MEDIA_LOCATION}"/*
```
processes ${IMMICH_MEDIA_LOCATION}/library twice. If there are many files inside, it can significantly slow down the startup process.
hydazz

This comment was marked as off-topic.

@hydazz
Copy link
Member

hydazz commented Jan 3, 2025

chown -R abc:abc
"${IMMICH_MEDIA_LOCATION}"
"${IMMICH_MEDIA_LOCATION}"/*

I have no idea how I did that 🤦 excellent scripting there

@hydazz hydazz merged commit 627e6e6 into imagegenius:openvino Jan 5, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants