mirror of
https://github.com/YunoHost-Apps/lychee_ynh.git
synced 2024-09-03 19:36:36 +02:00
parent
ecab8cf83f
commit
652c1da559
7 changed files with 23 additions and 28 deletions
|
@ -11,7 +11,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
|
||||||
## Overview
|
## Overview
|
||||||
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.
|
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.2.2
|
**Shipped version:** 4.3
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ Si vous n'avez pas YunoHost, consultez [le guide](https://yunohost.org/#/install
|
||||||
## Vue d'ensemble
|
## Vue d'ensemble
|
||||||
Lychee est un outil de gestion de photos gratuit, qui fonctionne sur votre serveur ou votre espace Web. L'installation est une question de secondes. Téléchargez, gérez et partagez des photos comme à partir d'une application native. Lychee est livré avec tout ce dont vous avez besoin et toutes vos photos sont stockées en toute sécurité.
|
Lychee est un outil de gestion de photos gratuit, qui fonctionne sur votre serveur ou votre espace Web. L'installation est une question de secondes. Téléchargez, gérez et partagez des photos comme à partir d'une application native. Lychee est livré avec tout ce dont vous avez besoin et toutes vos photos sont stockées en toute sécurité.
|
||||||
|
|
||||||
**Version incluse :** 4.2.2
|
**Version incluse :** 4.3
|
||||||
|
|
||||||
## Captures d'écran
|
## Captures d'écran
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
SOURCE_URL=https://github.com/LycheeOrg/Lychee/releases/download/v4.2.2/Lychee.zip
|
SOURCE_URL=https://github.com/LycheeOrg/Lychee/releases/download/v4.3.0/Lychee.zip
|
||||||
SOURCE_SUM=9d570abb980d8ad5529eaab235a8dd71586a805e48f532357a390384bab0c38b
|
SOURCE_SUM=4d9afdafb3d6711e85779377ebde523d7ef0a5bf3aea6ff7ca29ef6058536184
|
||||||
SOURCE_SUM_PRG=sha256sum
|
SOURCE_SUM_PRG=sha256sum
|
||||||
SOURCE_FORMAT=zip
|
SOURCE_FORMAT=zip
|
||||||
SOURCE_IN_SUBDIR=true
|
SOURCE_IN_SUBDIR=true
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"en": "Photo-management-system to manage and share photos.",
|
"en": "Photo-management-system to manage and share photos.",
|
||||||
"fr": "Système de gestion de photos pour gérer et partager des photos."
|
"fr": "Système de gestion de photos pour gérer et partager des photos."
|
||||||
},
|
},
|
||||||
"version": "4.2.2~ynh1",
|
"version": "4.3~ynh1",
|
||||||
"url": "https://lycheeorg.github.io/",
|
"url": "https://lycheeorg.github.io/",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
|
|
|
@ -61,6 +61,14 @@ db_user=$db_name
|
||||||
ynh_app_setting_set --app=$app --key=db_name --value=$db_name
|
ynh_app_setting_set --app=$app --key=db_name --value=$db_name
|
||||||
ynh_mysql_setup_db --db_user=$db_user --db_name=$db_name
|
ynh_mysql_setup_db --db_user=$db_user --db_name=$db_name
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# CREATE DEDICATED USER
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Configuring system user..." --weight=2
|
||||||
|
|
||||||
|
# Create a system user
|
||||||
|
ynh_system_user_create --username=$app
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -88,14 +96,6 @@ ynh_script_progression --message="Configuring NGINX web server..." --weight=1
|
||||||
# Create a dedicated NGINX config
|
# Create a dedicated NGINX config
|
||||||
ynh_add_nginx_config "public_path"
|
ynh_add_nginx_config "public_path"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# CREATE DEDICATED USER
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Configuring system user..." --weight=2
|
|
||||||
|
|
||||||
# Create a system user
|
|
||||||
ynh_system_user_create --username=$app
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# PHP-FPM CONFIGURATION
|
# PHP-FPM CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -110,8 +110,7 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Installing Lychee with Composer..." --weight=15
|
ynh_script_progression --message="Installing Lychee with Composer..." --weight=15
|
||||||
|
|
||||||
# Install composer
|
ynh_install_composer --install_args="--ignore-platform-reqs"
|
||||||
ynh_install_composer --phpversion=$phpversion --workdir=$final_path --install_args="--prefer-source --no-dev"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# BUILDING
|
# BUILDING
|
||||||
|
@ -132,13 +131,6 @@ popd
|
||||||
# Setup custom user.css file
|
# Setup custom user.css file
|
||||||
cp ../conf/user.css.example $final_path/public/dist/user.css
|
cp ../conf/user.css.example $final_path/public/dist/user.css
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# STORE THE CONFIG FILE CHECKSUM
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
# Calculate and store the config file checksum into the app settings
|
|
||||||
ynh_store_file_checksum "$final_path/.env"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SECURE FILES AND DIRECTORIES
|
# SECURE FILES AND DIRECTORIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -147,7 +139,7 @@ ynh_store_file_checksum "$final_path/.env"
|
||||||
chown -R $app: $final_path
|
chown -R $app: $final_path
|
||||||
chmod 750 $final_path/bootstrap/cache
|
chmod 750 $final_path/bootstrap/cache
|
||||||
chown -R $app: $public_path
|
chown -R $app: $public_path
|
||||||
chmod 750 $public_path
|
chmod 755 $public_path
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SSOWAT
|
# SETUP SSOWAT
|
||||||
|
|
|
@ -77,9 +77,9 @@ ynh_restore_file --origin_path="$public_path" --not_mandatory
|
||||||
|
|
||||||
# Set permissions to app files
|
# Set permissions to app files
|
||||||
chown -R $app: $final_path
|
chown -R $app: $final_path
|
||||||
chmod -R 750 $final_path/bootstrap/cache
|
chmod 750 $final_path/bootstrap/cache
|
||||||
chown -R $app: $public_path
|
chown -R $app: $public_path
|
||||||
chmod -R 750 $public_path
|
chmod 755 $public_path
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REINSTALL DEPENDENCIES
|
# REINSTALL DEPENDENCIES
|
||||||
|
|
|
@ -95,6 +95,9 @@ then
|
||||||
# Backup the config file in the temp dir
|
# Backup the config file in the temp dir
|
||||||
cp -a "$final_path/public/dist/user.css" "$tmpdir/user.css"
|
cp -a "$final_path/public/dist/user.css" "$tmpdir/user.css"
|
||||||
|
|
||||||
|
# Move media to new path
|
||||||
|
cp -a "$final_path/public/uploads" "$public_path/uploads"
|
||||||
|
|
||||||
# Remove the app directory securely
|
# Remove the app directory securely
|
||||||
ynh_secure_remove --file="$final_path"
|
ynh_secure_remove --file="$final_path"
|
||||||
|
|
||||||
|
@ -147,7 +150,8 @@ ynh_script_progression --message="Installing Composer..." --weight=1
|
||||||
#ynh_secure_remove --file="$final_path/composer.lock"
|
#ynh_secure_remove --file="$final_path/composer.lock"
|
||||||
|
|
||||||
# Upgrade composer itself
|
# Upgrade composer itself
|
||||||
ynh_install_composer --phpversion=$phpversion --workdir=$final_path --install_args="--prefer-source --no-dev"
|
#ynh_install_composer --phpversion=$phpversion --workdir=$final_path --install_args="--prefer-source --no-dev"
|
||||||
|
ynh_install_composer --install_args="--ignore-platform-reqs"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP APPLICATION CONFIG
|
# SETUP APPLICATION CONFIG
|
||||||
|
@ -165,7 +169,6 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
then
|
||||||
ynh_script_progression --message="Upgrading Lychee source files..." --weight=4
|
ynh_script_progression --message="Upgrading Lychee source files..." --weight=4
|
||||||
pushd $final_path
|
pushd $final_path
|
||||||
composer install --no-dev
|
|
||||||
php$phpversion artisan key:generate --no-interaction --force
|
php$phpversion artisan key:generate --no-interaction --force
|
||||||
php$phpversion artisan migrate --no-interaction --force
|
php$phpversion artisan migrate --no-interaction --force
|
||||||
popd
|
popd
|
||||||
|
@ -179,7 +182,7 @@ fi
|
||||||
chown -R $app: $final_path
|
chown -R $app: $final_path
|
||||||
chmod 750 $final_path/bootstrap/cache
|
chmod 750 $final_path/bootstrap/cache
|
||||||
chown -R $app: $public_path
|
chown -R $app: $public_path
|
||||||
chmod 750 $public_path
|
chmod 755 $public_path
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RELOAD NGINX
|
# RELOAD NGINX
|
||||||
|
|
Loading…
Reference in a new issue