1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/immich_ynh.git synced 2024-09-03 20:36:24 +02:00

Merge pull request #74 from YunoHost-Apps/ffmpeg

Move to jellyfin-ffmpeg
This commit is contained in:
ewilly 2024-07-28 10:46:17 +00:00 committed by GitHub
commit dfb44864a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 28 additions and 9 deletions

View file

@ -108,6 +108,8 @@ ram.runtime = "500M"
"libmojolicious-perl",
"libfile-slurper-perl",
"liblcms2-2",
"libllvm16",
"libllvm13",
"redis-server"
]
@ -115,7 +117,20 @@ ram.runtime = "500M"
repo = "deb https://apt.postgresql.org/pub/repos/apt __YNH_DEBIAN_VERSION__-pgdg main 16"
key = "https://www.postgresql.org/media/keys/ACCC4CF8.asc"
packages = [
"libllvm13", "libpq5", "libpq-dev" , "postgresql-16", "postgresql-16-pgvector", "postgresql-client-16", "postgresql-common", "postgresql-client-common"
"libpq5",
"libpq-dev",
"postgresql-16",
"postgresql-16-pgvector",
"postgresql-client-16",
"postgresql-common",
"postgresql-client-common"
]
[resources.apt.extras.jellyfin-ffmpeg]
repo = "deb [arch=__YNH_ARCH__] https://repo.jellyfin.org/debian __YNH_DEBIAN_VERSION__ main"
key = "https://repo.jellyfin.org/jellyfin_team.gpg.key"
packages = [
"jellyfin-ffmpeg6"
]
[resources.database]

View file

@ -122,6 +122,10 @@ myynh_install_immich() {
# Thanks to https://github.com/arter97/immich-native
# Check https://github.com/immich-app/base-images/blob/main/server/Dockerfile for changes
# Add jellyfin-ffmpeg to $PATH
PATH="/usr/lib/jellyfin-ffmpeg:$PATH"
# Use ynh nodejs helper
ynh_use_nodejs
# Use 127.0.0.1

View file

@ -27,13 +27,6 @@ ynh_restore_file --origin_path="$data_dir" --not_mandatory
chown -R $app:$app "$data_dir"
#=================================================
# INSTALL NODEJS
#=================================================
ynh_script_progression --message="Reinstalling nodejs..." --weight=5
ynh_exec_warn_less ynh_install_nodejs --nodejs_version="$nodejs_version"
#=================================================
# CHECK PYTHON VERSION AND COMPILE IF NEEDED
#=================================================
@ -42,6 +35,13 @@ ynh_script_progression --message="Check Python version & compile the required on
py_required_version=$(ynh_app_setting_get --app="$app" --key=python)
myynh_install_python --python="$py_required_version"
#=================================================
# INSTALL NODEJS
#=================================================
ynh_script_progression --message="Reinstalling nodejs..." --weight=5
ynh_exec_warn_less ynh_install_nodejs --nodejs_version="$nodejs_version"
#=================================================
# RESTORE THE DATABASE
#=================================================