mirror of
https://github.com/YunoHost-Apps/photoprism_ynh.git
synced 2024-09-03 19:56:41 +02:00
init use official builds
This commit is contained in:
parent
5fbed01f93
commit
289d89d54b
2 changed files with 7 additions and 34 deletions
|
@ -7,7 +7,7 @@ name = "Photoprism"
|
|||
description.en = "AI-Powered Photos App for the Decentralized Web"
|
||||
description.fr = "Gestion de photos en ligne"
|
||||
|
||||
version = "2022.09.01~ynh4"
|
||||
version = "2023.11.28~ynh1"
|
||||
|
||||
maintainers = ["Thovi98"]
|
||||
|
||||
|
@ -59,18 +59,11 @@ ram.runtime = "50M"
|
|||
[resources]
|
||||
[resources.sources]
|
||||
[resources.sources.main]
|
||||
format = "docker"
|
||||
extract = true
|
||||
prefetch = false
|
||||
amd64.url = "https://github.com/photoprism/photoprism/releases/download/231128-f48ff16ef/photoprism_231128-f48ff16ef-linux-amd64.tar.gz"
|
||||
amd64.sha256 = ""
|
||||
|
||||
amd64.url = "photoprism/photoprism:220901-bullseye"
|
||||
amd64.sha256 = "3381d40181ecdf62932e9530c6b81e6e0f8828a3d373d8dedf662aab96dafba4"
|
||||
|
||||
arm64.url = "photoprism/photoprism:220901-bullseye"
|
||||
arm64.sha256 = "3dcffda0a2b58c91479c883205025edee4ea799fc35be419f9bec708ccb54b7f"
|
||||
|
||||
armhf.url = "photoprism/photoprism:220901-bullseye"
|
||||
armhf.sha256 = "a74f4d0a220af9a5291307bfba36f662d97c4df143f04d951e3c30111916317e"
|
||||
arm64.url = "https://github.com/photoprism/photoprism/releases/download/231128-f48ff16ef/photoprism_231128-f48ff16ef-linux-arm64.tar.gz"
|
||||
arm64.sha256 = ""
|
||||
|
||||
[resources.system_user]
|
||||
|
||||
|
|
|
@ -34,7 +34,9 @@ ynh_app_setting_set --app=$app --key=password --value="$password"
|
|||
#=================================================
|
||||
ynh_script_progression --message="Setting up source files..."
|
||||
|
||||
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$install_dir"
|
||||
|
||||
chmod 750 "$install_dir"
|
||||
chmod -R o-rwx "$install_dir"
|
||||
|
@ -48,33 +50,11 @@ ynh_script_progression --message="Configuring NGINX web server..."
|
|||
# Create a dedicated NGINX config
|
||||
ynh_add_nginx_config
|
||||
|
||||
#=================================================
|
||||
# SPECIFIC SETUP
|
||||
#=================================================
|
||||
# MAKE INSTALL
|
||||
#=================================================
|
||||
ynh_script_progression --message="Making install..."
|
||||
|
||||
ynh_setup_source --dest_dir="$install_dir/build"
|
||||
|
||||
mkdir -p "$install_dir/live/"
|
||||
|
||||
rsync -a "$install_dir/build/opt/photoprism/" "$install_dir/live/"
|
||||
ynh_secure_remove --file="$install_dir/build"
|
||||
|
||||
chmod 750 "$install_dir"
|
||||
chmod -R o-rwx "$install_dir"
|
||||
chown -R $app:$app "$install_dir"
|
||||
|
||||
#=================================================
|
||||
# CREATE DATA DIRECTORY
|
||||
#=================================================
|
||||
ynh_script_progression --message="Creating a data directory..."
|
||||
|
||||
#mkdir -p $data_dir
|
||||
rsync -a "$install_dir/live/assets/" "$data_dir/assets/"
|
||||
ynh_secure_remove --file="$install_dir/live/assets/"
|
||||
|
||||
chmod 750 "$data_dir"
|
||||
chmod -R o-rwx "$data_dir"
|
||||
chown -R $app:www-data "$data_dir"
|
||||
|
|
Loading…
Add table
Reference in a new issue