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:
commit
dfb44864a1
3 changed files with 28 additions and 9 deletions
|
@ -108,6 +108,8 @@ ram.runtime = "500M"
|
||||||
"libmojolicious-perl",
|
"libmojolicious-perl",
|
||||||
"libfile-slurper-perl",
|
"libfile-slurper-perl",
|
||||||
"liblcms2-2",
|
"liblcms2-2",
|
||||||
|
"libllvm16",
|
||||||
|
"libllvm13",
|
||||||
"redis-server"
|
"redis-server"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -115,7 +117,20 @@ ram.runtime = "500M"
|
||||||
repo = "deb https://apt.postgresql.org/pub/repos/apt __YNH_DEBIAN_VERSION__-pgdg main 16"
|
repo = "deb https://apt.postgresql.org/pub/repos/apt __YNH_DEBIAN_VERSION__-pgdg main 16"
|
||||||
key = "https://www.postgresql.org/media/keys/ACCC4CF8.asc"
|
key = "https://www.postgresql.org/media/keys/ACCC4CF8.asc"
|
||||||
packages = [
|
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]
|
[resources.database]
|
||||||
|
|
|
@ -122,6 +122,10 @@ myynh_install_immich() {
|
||||||
# Thanks to https://github.com/arter97/immich-native
|
# Thanks to https://github.com/arter97/immich-native
|
||||||
# Check https://github.com/immich-app/base-images/blob/main/server/Dockerfile for changes
|
# 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
|
ynh_use_nodejs
|
||||||
|
|
||||||
# Use 127.0.0.1
|
# Use 127.0.0.1
|
||||||
|
|
|
@ -27,13 +27,6 @@ ynh_restore_file --origin_path="$data_dir" --not_mandatory
|
||||||
|
|
||||||
chown -R $app:$app "$data_dir"
|
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
|
# 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)
|
py_required_version=$(ynh_app_setting_get --app="$app" --key=python)
|
||||||
myynh_install_python --python="$py_required_version"
|
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
|
# RESTORE THE DATABASE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue