1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/photoprism_ynh.git synced 2024-09-03 19:56:41 +02:00
This commit is contained in:
Thomas 2023-03-29 22:05:48 +02:00 committed by Félix Piédallu
parent 5ccb3dc137
commit ace7966104

View file

@ -32,7 +32,7 @@ ynh_app_setting_set --app=$app --key=language_key --value=$language_key
ynh_script_progression --message="Setting up source files..." ynh_script_progression --message="Setting up source files..."
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source
chmod 750 "$install_dir" chmod 750 "$install_dir"
chmod -R o-rwx "$install_dir" chmod -R o-rwx "$install_dir"
@ -54,10 +54,7 @@ ynh_add_nginx_config
ynh_script_progression --message="Making install..." ynh_script_progression --message="Making install..."
Install photoprism Install photoprism
pushd $install_dir/build ynh_setup_source --dest_dir="$final_path/build"
detect_arch
./docker-image-extract photoprism/photoprism:$PHOTOPRISM_VERSION
popd
mkdir -p "$install_dir/live/" mkdir -p "$install_dir/live/"
rsync -a "$install_dir/build/output/opt/photoprism/" "$install_dir/live/" rsync -a "$install_dir/build/output/opt/photoprism/" "$install_dir/live/"