1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/immich_ynh.git synced 2024-09-03 20:36:24 +02:00
This commit is contained in:
Sylvain 2024-03-27 21:01:23 +01:00
parent 4db4b1dea7
commit 655f0e6b62

View file

@ -134,6 +134,7 @@ myynh_install_python() {
# Install immich # Install immich
myynh_install_immich() { myynh_install_immich() {
ynh_use_nodejs ynh_use_nodejs
ynh_npm="ynh_exec_warn_less $ynh_npm"
# Install immich-server # Install immich-server
cd "$tmpdir/server" cd "$tmpdir/server"
@ -157,7 +158,6 @@ myynh_install_immich() {
cp -a "$tmpdir/server/resources" "$install_dir/app/" cp -a "$tmpdir/server/resources" "$install_dir/app/"
cp -a "$tmpdir/server/package.json" "$install_dir/app/" cp -a "$tmpdir/server/package.json" "$install_dir/app/"
cp -a "$tmpdir/server/package-lock.json" "$install_dir/app/" cp -a "$tmpdir/server/package-lock.json" "$install_dir/app/"
cp -a "$tmpdir/server/start.sh" "$install_dir/app/"
cp -a "$tmpdir/server/start-microservices.sh" "$install_dir/app/" cp -a "$tmpdir/server/start-microservices.sh" "$install_dir/app/"
cp -a "$tmpdir/server/start-server.sh" "$install_dir/app/" cp -a "$tmpdir/server/start-server.sh" "$install_dir/app/"
cp -a "$tmpdir/LICENSE" "$install_dir/app/" cp -a "$tmpdir/LICENSE" "$install_dir/app/"
@ -184,7 +184,6 @@ myynh_install_immich() {
ynh_exec_warn_less "$install_dir/app/machine-learning/venv/bin/poetry" install --no-root --with dev --with cpu ynh_exec_warn_less "$install_dir/app/machine-learning/venv/bin/poetry" install --no-root --with dev --with cpu
) )
cp -a "$tmpdir/machine-learning/ann" "$install_dir/app/machine-learning/" cp -a "$tmpdir/machine-learning/ann" "$install_dir/app/machine-learning/"
cp -a "$tmpdir/machine-learning/start.sh" "$install_dir/app/machine-learning/"
cp -a "$tmpdir/machine-learning/app" "$install_dir/app/machine-learning/" cp -a "$tmpdir/machine-learning/app" "$install_dir/app/machine-learning/"
# Install custom start.sh script # Install custom start.sh script
ynh_add_config --template="immich-machine-learning-start.sh" --destination="$install_dir/app/machine-learning/start.sh" ynh_add_config --template="immich-machine-learning-start.sh" --destination="$install_dir/app/machine-learning/start.sh"