diff --git a/conf/.env.example b/conf/.env.example index 57d4ef9..80abada 100644 --- a/conf/.env.example +++ b/conf/.env.example @@ -32,8 +32,8 @@ DB_LOG_SQL=false TIMEZONE=UTC # folders in which the files will be stored -LYCHEE_DIST="/var/www/__APP__/public/dist/" -LYCHEE_UPLOADS="/home/yunohost.__APP__/uploads/" +#LYCHEE_DIST="/var/www/__APP__/public/dist/" +#LYCHEE_UPLOADS="/home/yunohost.__APP__/uploads/" # url to access those files # LYCHEE_DIST_URL="dist/" diff --git a/conf/php-fpm.conf b/conf/php-fpm.conf index c860309..43fca0c 100644 --- a/conf/php-fpm.conf +++ b/conf/php-fpm.conf @@ -419,12 +419,12 @@ chdir = __FINALPATH__ ;php_admin_value[memory_limit] = 32M ; Common values to change to increase file upload limit -; php_admin_value[upload_max_filesize] = 200M -; php_admin_value[post_max_size] = 200M +php_admin_value[upload_max_filesize] = 200M +php_admin_value[post_max_size] = 200M ; php_admin_flag[mail.add_x_header] = Off ; 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[memory_limit] = 256M ; php_admin_flag[short_open_tag] = On diff --git a/scripts/backup b/scripts/backup index d18951b..bd0dbdc 100755 --- a/scripts/backup +++ b/scripts/backup @@ -38,7 +38,7 @@ ynh_backup --src_path="$final_path" # BACKUP MEDIA #================================================= -ynh_backup --src_path="/home/yunohost.$app" --is_big +#ynh_backup --src_path="/home/yunohost.$app" --is_big #================================================= # BACKUP THE NGINX CONFIGURATION diff --git a/scripts/install b/scripts/install index 0e9ca13..f9ef137 100755 --- a/scripts/install +++ b/scripts/install @@ -134,8 +134,8 @@ ynh_store_file_checksum "$final_path/.env" # CREATE DIRECTORIES #================================================= -mkdir -p /home/yunohost.${app}/uploads -mkdir -p /home/yunohost.${app}/uploads/{big,medium,small,thumb,import} +#mkdir -p /home/yunohost.${app}/uploads +#mkdir -p /home/yunohost.${app}/uploads/{big,medium,small,thumb,import} #================================================= # SECURE FILES AND DIRECTORIES @@ -143,8 +143,8 @@ mkdir -p /home/yunohost.${app}/uploads/{big,medium,small,thumb,import} # Set permissions to app files chown -R $app: $final_path -chown -R $app: /home/yunohost.${app} -chmod -R 750 /home/yunohost.${app}/uploads +#chown -R $app: /home/yunohost.${app} +#chmod -R 750 /home/yunohost.${app} #================================================= # SETUP SSOWAT diff --git a/scripts/restore b/scripts/restore index bf02d60..e804f59 100755 --- a/scripts/restore +++ b/scripts/restore @@ -65,10 +65,10 @@ ynh_system_user_create --username=$app #================================================= # RESTORE DATA #================================================= -ynh_script_progression --message="Restoring Lychee data..." +#ynh_script_progression --message="Restoring Lychee data..." # Use --not_mandatory for the data directory, because if the backup has been made with BACKUP_CORE_ONLY, there's no data into the backup. -ynh_restore_file --origin_path="/home/yunohost.$app" --not_mandatory +#ynh_restore_file --origin_path="/home/yunohost.$app" --not_mandatory #================================================= # RESTORE USER RIGHTS diff --git a/scripts/upgrade b/scripts/upgrade index e86557f..f9a1e9b 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -138,7 +138,7 @@ ynh_store_file_checksum --file="$final_path/.env" # Set permissions on app files chown -R $app: $final_path -chmod -R 750 /home/yunohost.$app/{uploads,data} +#chmod -R 750 /home/yunohost.$app/{uploads,data} #================================================= # RELOAD NGINX