1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lychee_ynh.git synced 2024-09-03 19:36:36 +02:00

Merge pull request #1 from YunoHost-Apps/test2

Testing
This commit is contained in:
Éric Gaspar 2020-11-06 22:56:49 +01:00 committed by GitHub
commit 3efc93dc04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 12 deletions

View file

@ -32,8 +32,8 @@ DB_LOG_SQL=false
TIMEZONE=UTC TIMEZONE=UTC
# folders in which the files will be stored # folders in which the files will be stored
LYCHEE_DIST="/var/www/__APP__/public/dist/" #LYCHEE_DIST="/var/www/__APP__/public/dist/"
LYCHEE_UPLOADS="/home/yunohost.__APP__/uploads/" #LYCHEE_UPLOADS="/home/yunohost.__APP__/uploads/"
# url to access those files # url to access those files
# LYCHEE_DIST_URL="dist/" # LYCHEE_DIST_URL="dist/"

View file

@ -419,12 +419,12 @@ chdir = __FINALPATH__
;php_admin_value[memory_limit] = 32M ;php_admin_value[memory_limit] = 32M
; Common values to change to increase file upload limit ; Common values to change to increase file upload limit
php_admin_value[upload_max_filesize] = 200M ;php_admin_value[upload_max_filesize] = 200M
php_admin_value[post_max_size] = 200M ;php_admin_value[post_max_size] = 200M
; php_admin_flag[mail.add_x_header] = Off ; php_admin_flag[mail.add_x_header] = Off
; Other common parameters ; Other common parameters
php_admin_value[max_execution_time] = 200 ;php_admin_value[max_execution_time] = 200
; php_admin_value[max_input_time] = 300 ; php_admin_value[max_input_time] = 300
; php_admin_value[memory_limit] = 256M ; php_admin_value[memory_limit] = 256M
; php_admin_flag[short_open_tag] = On ; php_admin_flag[short_open_tag] = On

View file

@ -6,7 +6,7 @@
YNH_PHP_VERSION=7.3 YNH_PHP_VERSION=7.3
extra_php_dependencies="php${YNH_PHP_VERSION}-imagick php${YNH_PHP_VERSION}-bcmath php${YNH_PHP_VERSION}-exif php${YNH_PHP_VERSION}-mbstring php${YNH_PHP_VERSION}-gd php${YNH_PHP_VERSION}-mysqli php${YNH_PHP_VERSION}-json php${YNH_PHP_VERSION}-zip" extra_php_dependencies="php${YNH_PHP_VERSION}-xml php${YNH_PHP_VERSION}-imagick php${YNH_PHP_VERSION}-bcmath php${YNH_PHP_VERSION}-exif php${YNH_PHP_VERSION}-mbstring php${YNH_PHP_VERSION}-gd php${YNH_PHP_VERSION}-mysqli php${YNH_PHP_VERSION}-json php${YNH_PHP_VERSION}-zip"
#================================================= #=================================================
# EXPERIMENTAL HELPERS # EXPERIMENTAL HELPERS

View file

@ -99,7 +99,7 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
#================================================= #=================================================
# INSTALL LYCHEE WITH COMPOSER # INSTALL LYCHEE WITH COMPOSER
#================================================= #=================================================
ynh_script_progression --message="Installing ampache with composer..." --weight=45 ynh_script_progression --message="Installing Lychee with Composer..." --weight=45
# Install composer # Install composer
ynh_install_composer --phpversion="${YNH_PHP_VERSION}" --workdir="$final_path" --install_args="--prefer-source --no-dev" ynh_install_composer --phpversion="${YNH_PHP_VERSION}" --workdir="$final_path" --install_args="--prefer-source --no-dev"
@ -115,13 +115,12 @@ cp ../conf/.env.example $final_path/.env
ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --target_file="$final_path/.env" ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --target_file="$final_path/.env"
ynh_replace_string --match_string="__DB_PASS__" --replace_string="$db_pwd" --target_file="$final_path/.env" ynh_replace_string --match_string="__DB_PASS__" --replace_string="$db_pwd" --target_file="$final_path/.env"
ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="$final_path/.env" ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="$final_path/.env"
#ynh_replace_string --match_string="__LANGUAGE__" --replace_string="$language" --target_file="$final_path/.env"
# setup application config # setup application config
cd $final_path && php$phpversion artisan key:generate -n --force --env cd $final_path && php$phpversion artisan key:generate -n --force --env
cd $final_path && php$phpversion artisan migrate -n --force cd $final_path && php$phpversion artisan migrate -n --force
#cd $final_path && php$phpversion artisan config:clear -n cd $final_path && php$phpversion artisan config:clear -n
#cd $final_path && php$phpversion artisan config:cache -n cd $final_path && php$phpversion artisan config:cache -n
#================================================= #=================================================
# STORE THE CONFIG FILE CHECKSUM # STORE THE CONFIG FILE CHECKSUM
@ -135,7 +134,8 @@ ynh_store_file_checksum "$final_path/.env"
# CREATE DIRECTORIES # CREATE DIRECTORIES
#================================================= #=================================================
#mkdir -p /home/yunohost.$app/{uploads,data} #mkdir -p /home/yunohost.${app}/uploads
#mkdir -p /home/yunohost.${app}/uploads/{big,medium,small,thumb,import}
#================================================= #=================================================
# SECURE FILES AND DIRECTORIES # SECURE FILES AND DIRECTORIES
@ -143,7 +143,8 @@ ynh_store_file_checksum "$final_path/.env"
# Set permissions to app files # Set permissions to app files
chown -R $app: $final_path chown -R $app: $final_path
#chmod -R 750 /home/yunohost.$app/{uploads,data} #chown -R $app: /home/yunohost.${app}
#chmod -R 750 /home/yunohost.${app}
#================================================= #=================================================
# SETUP SSOWAT # SETUP SSOWAT