mirror of
https://github.com/YunoHost-Apps/photoprism_ynh.git
synced 2024-09-03 19:56:41 +02:00
update to latest version + some tweaks and fixes
This commit is contained in:
parent
ac0d7db2d9
commit
e569f89c8b
5 changed files with 33 additions and 9 deletions
|
@ -4,8 +4,12 @@ PHOTOPRISM_CACHE_PATH="__DATA_DIR__/cache"
|
|||
PHOTOPRISM_ORIGINALS_PATH="__DATA_DIR__/photos/originals"
|
||||
PHOTOPRISM_IMPORT_PATH="__DATA_DIR__/photos/import"
|
||||
PHOTOPRISM_TEMP_PATH="__DATA_DIR__/temp"
|
||||
PHOTOPRISM_USERS_PATH="__DATA_DIR__/users"
|
||||
|
||||
PHOTOPRISM_BACKUP_PATH="__DATA_DIR__/backups"
|
||||
|
||||
PHOTOPRISM_SITE_URL="https://__DOMAIN____PATH__"
|
||||
PHOTOPRISM_ADMIN_USER="__ADMIN__"
|
||||
PHOTOPRISM_ADMIN_PASSWORD="__PASSWORD__"
|
||||
PHOTOPRISM_HTTP_HOST="127.0.0.1"
|
||||
PHOTOPRISM_HTTP_MODE="release"
|
||||
|
@ -20,6 +24,7 @@ PHOTOPRISM_DATABASE_PASSWORD="__DB_PWD__"
|
|||
PHOTOPRISM_DEFAULT_THEME="lavendel"
|
||||
PHOTOPRISM_DEFAULT_LOCALE="__LANGUAGE_KEY__"
|
||||
PHOTOPRISM_SITE_DESCRIPTION="__APP__"
|
||||
PHOTOPRISM_APP_NAME="__APP__"
|
||||
|
||||
PHOTOPRISM_DEBUG="false"
|
||||
PHOTOPRISM_DARKTABLE_BIN="/usr/bin/darktable-cli"
|
||||
|
|
|
@ -7,7 +7,7 @@ name = "Photoprism"
|
|||
description.en = "AI-Powered Photos App for the Decentralized Web"
|
||||
description.fr = "Gestion de photos en ligne"
|
||||
|
||||
version = "2023.11.28~ynh1"
|
||||
version = "2022.09.01~ynh4"
|
||||
|
||||
maintainers = ["Thovi98"]
|
||||
|
||||
|
@ -44,6 +44,9 @@ ram.runtime = "50M"
|
|||
type = "group"
|
||||
default = "visitors"
|
||||
|
||||
[install.admin]
|
||||
type = "user"
|
||||
|
||||
[install.language]
|
||||
ask.en = "Choose the application language"
|
||||
ask.fr = "Choisissez la langue de l'application"
|
||||
|
@ -59,15 +62,19 @@ ram.runtime = "50M"
|
|||
[resources]
|
||||
[resources.sources]
|
||||
[resources.sources.main]
|
||||
amd64.url = "https://github.com/photoprism/photoprism/releases/download/231128-f48ff16ef/photoprism_231128-f48ff16ef-linux-amd64.tar.gz"
|
||||
amd64.sha256 = "4fb91a67191ffff840f2d92f59fde06bc13d0d92f914ff9a31314b598a5a2cbd"
|
||||
amd64.url = "https://github.com/photoprism/photoprism/releases/download/240531-60b3a4628/photoprism_240531-60b3a4628-linux-amd64.tar.gz"
|
||||
amd64.sha256 = "1859df8e95c054fb4ff9c9de80ed0db96a1126f91d3e57946628fa92008229eb"
|
||||
|
||||
arm64.url = "https://github.com/photoprism/photoprism/releases/download/231128-f48ff16ef/photoprism_231128-f48ff16ef-linux-arm64.tar.gz"
|
||||
arm64.sha256 = "2ddc7500d2055fd76bab229920330f25e007ad1e8e3c36ca34ace16bafa16b09"
|
||||
arm64.url = "https://github.com/photoprism/photoprism/releases/download/240531-60b3a4628/photoprism_240531-60b3a4628-linux-arm64.tar.gz"
|
||||
arm64.sha256 = "16d5ef94dd733bd46db49b10c25a019b9510e690d40efee1d691c20a72263044"
|
||||
|
||||
armhf.url = "https://github.com/photoprism/photoprism/releases/download/240531-60b3a4628/photoprism_240531-60b3a4628-linux-arm.tar.gz"
|
||||
armhf.sha256 = "be9f10f8fe65d2cde285d0eafca3067c9f4344eb56cc01566e52f14027f929f2"
|
||||
|
||||
autoupdate.strategy = "latest_github_release"
|
||||
autoupdate.asset.amd64 = ".*amd64.tar.gz"
|
||||
autoupdate.asset.arm64 = ".*arm64.tar.gz"
|
||||
autoupdate.asset.armhf = ".*arm.tar.gz"
|
||||
|
||||
[resources.system_user]
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ path=$new_path
|
|||
|
||||
ynh_add_config --template="../conf/.env" --destination="$install_dir/.env"
|
||||
|
||||
chmod 400 "$install_dir/.env"
|
||||
chmod 600 "$install_dir/.env"
|
||||
chown $app:$app "$install_dir/.env"
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -66,7 +66,7 @@ ynh_script_progression --message="Adding a configuration file..."
|
|||
|
||||
ynh_add_config --template="../conf/.env" --destination="$install_dir/.env"
|
||||
|
||||
chmod 400 "$install_dir/.env"
|
||||
chmod 600 "$install_dir/.env"
|
||||
chown $app:$app "$install_dir/.env"
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -17,7 +17,6 @@ ynh_script_progression --message="Checking version..."
|
|||
|
||||
upgrade_type=$(ynh_check_app_version_changed)
|
||||
|
||||
|
||||
#=================================================
|
||||
# ENSURE DOWNWARD COMPATIBILITY
|
||||
#=================================================
|
||||
|
@ -69,9 +68,22 @@ ynh_script_progression --message="Updating a configuration file..."
|
|||
|
||||
ynh_add_config --template="../conf/.env" --destination="$install_dir/.env"
|
||||
|
||||
chmod 400 "$install_dir/.env"
|
||||
chmod 600 "$install_dir/.env"
|
||||
chown $app:$app "$install_dir/.env"
|
||||
|
||||
#=================================================
|
||||
# RUNNNING DB MIGRATIONS
|
||||
#=================================================
|
||||
ynh_script_progression --message="Running database migrations..."
|
||||
|
||||
if ynh_compare_current_package_version --comparison lt --version 2022.09.01~ynh4
|
||||
then
|
||||
ynh_exec_warn_less $final_path/live/bin/photoprism \
|
||||
--assets-path=/home/yunohost.app/photoprism/assets \
|
||||
--originals-path=/home/yunohost.app/photoprism/photos/originals \
|
||||
--import-path=/home/yunohost.app/photoprism/photos/import users reset --yes
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# SETUP SYSTEMD
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue