From fd9123b31b0c8cc9f9d4a19403087a9296ae4545 Mon Sep 17 00:00:00 2001 From: Limezy Date: Wed, 31 Aug 2022 12:12:36 +0700 Subject: [PATCH] Update install --- scripts/install | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/scripts/install b/scripts/install index 90c8bd0..f1ac011 100755 --- a/scripts/install +++ b/scripts/install @@ -144,19 +144,20 @@ rsync -a "$final_path/build/output/usr/src/app/node_modules/" "$final_path/serve ynh_secure_remove --file="$final_path/build/output" # Install immich web -#pushd $final_path/build -# detect_arch -# ./docker-image-extract altran1502/immich-web:$IMMICH_WEB_VERSION -#popd -#mkdir -p "$final_path/web/" -#pushd $final_path/build/output/usr/src/app +pushd $final_path/build + detect_arch + ./docker-image-extract altran1502/immich-web:$IMMICH_WEB_VERSION +popd +mkdir -p "$final_path/web/" +pushd $final_path/build/output/usr/src/app + ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH npm ci # npm config set user 0 # npm config set unsafe-perm true # sudo /bin/sh entrypoint.sh # sudo tree -#popd +popd #rsync -a "$final_path/build/output/usr/src/app/build/" "$final_path/web/" -#ynh_secure_remove --file="$final_path/build/output" +ynh_secure_remove --file="$final_path/build/output" # Install immich machine learning pushd $final_path/build