diff --git a/README.md b/README.md index 287e827..6bcf2ec 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in Lychee is a free photo-management tool, which runs on your server or web-space. Installing is a matter of seconds. Upload, manage and share photos like from a native application. Lychee comes with everything you need and all your photos are stored securely. -**Shipped version:** 4.7.0~ynh3 +**Shipped version:** 4.7.2~ynh1 **Demo:** https://lycheeorg.github.io/demo/ diff --git a/README_fr.md b/README_fr.md index 9f81d33..3c40e9b 100644 --- a/README_fr.md +++ b/README_fr.md @@ -18,7 +18,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po Lychee is a free photo-management tool, which runs on your server or web-space. Installing is a matter of seconds. Upload, manage and share photos like from a native application. Lychee comes with everything you need and all your photos are stored securely. -**Version incluse :** 4.7.0~ynh3 +**Version incluse :** 4.7.2~ynh1 **Démo :** https://lycheeorg.github.io/demo/ diff --git a/conf/.env.example b/conf/.env.example index b7e956c..4265b91 100644 --- a/conf/.env.example +++ b/conf/.env.example @@ -28,7 +28,7 @@ DB_USERNAME=__DB_USER__ DB_PASSWORD=__DB_PWD__ DB_LOG_SQL=false -TIMEZONE=UTC +TIMEZONE=__TIMEZONE__ # folders in which the files will be stored LYCHEE_DIST="__INSTALL_DIR__/public/dist/" diff --git a/conf/app.src b/conf/app.src index 8b3c2ae..85bc8ab 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/LycheeOrg/Lychee/releases/download/v4.7.0/Lychee.zip -SOURCE_SUM=5b2135a53ee938506e7375f9a63636071d31eebbc143ae9d3c29fb3fb98058fb +SOURCE_URL=https://github.com/LycheeOrg/Lychee/releases/download/v4.7.2/Lychee.zip +SOURCE_SUM=6353db3f2b0963f4a94576c2b16ed7eb7bb2954cd0b0dd745ba4db47998e8df0 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=zip SOURCE_IN_SUBDIR=true diff --git a/manifest.toml b/manifest.toml index 3852553..a0835b1 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "Lychee" description.en = "Photo-management-system to manage and share photos" description.fr = "Système de gestion de photos pour gérer et partager des photos" -version = "4.7.0~ynh3" +version = "4.7.2~ynh1" maintainers = ["eric_G"] @@ -52,7 +52,7 @@ ram.runtime = "50M" main.auth_header = false [resources.apt] - packages = "mariadb-server ffmpeg php8.1-xml php8.1-imagick php8.1-bcmath php8.1-exif php8.1-mbstring php8.1-gd php8.1-mysqli php8.1-zip php8.1-intl" + packages = "mariadb-server ffmpeg php8.2-xml php8.2-imagick php8.2-bcmath php8.2-exif php8.2-mbstring php8.2-gd php8.2-mysqli php8.2-zip php8.2-intl" [resources.database] type = "mysql" diff --git a/scripts/_common.sh b/scripts/_common.sh index 13781df..1a7049a 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -5,7 +5,7 @@ #================================================= # Composer version -YNH_COMPOSER_VERSION="2.3.5" +YNH_COMPOSER_VERSION="2.5.4" #================================================= # PERSONAL HELPERS diff --git a/scripts/install b/scripts/install index 9d15733..7da6032 100755 --- a/scripts/install +++ b/scripts/install @@ -17,6 +17,8 @@ fpm_footprint="low" fpm_free_footprint=0 fpm_usage="low" +timezone="$(cat /etc/timezone)" + #================================================= # STORE SETTINGS FROM MANIFEST #================================================= @@ -36,6 +38,7 @@ ynh_setup_source --dest_dir="$install_dir" chmod 750 "$install_dir/bootstrap/cache" chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" +chown -R $app: "$install_dir/public/sym/" #================================================= # PHP-FPM CONFIGURATION @@ -63,9 +66,10 @@ ynh_script_progression --message="Creating a data directory..." --weight=1 mkdir -p $data_dir/uploads mkdir -p $data_dir/uploads/{big,import,medium,raw,small,thumb} -chmod 750 "$data_dir" -chmod -R o-rwx "$data_dir" -chown -R $app:www-data "$data_dir" +chmod 775 "$data_dir/uploads/" +chmod 2775 "$data_dir/uploads/import/" +chmod -R o-rwx "$data_dir/uploads/" +chown -R $app:$app "$data_dir/uploads/" #================================================= # INSTALL APP WITH COMPOSER