mirror of
https://github.com/YunoHost-Apps/lychee_ynh.git
synced 2024-09-03 19:36:36 +02:00
Merge branch 'testing' of https://github.com/YunoHost-Apps/lychee_ynh into testing
This commit is contained in:
commit
e504407fb1
6 changed files with 13 additions and 13 deletions
|
@ -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/"
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -38,7 +38,7 @@ ynh_backup --src_path="$final_path"
|
||||||
# BACKUP MEDIA
|
# BACKUP MEDIA
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_backup --src_path="/home/yunohost.$app" --is_big
|
#ynh_backup --src_path="/home/yunohost.$app" --is_big
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP THE NGINX CONFIGURATION
|
# BACKUP THE NGINX CONFIGURATION
|
||||||
|
|
|
@ -134,8 +134,8 @@ ynh_store_file_checksum "$final_path/.env"
|
||||||
# CREATE DIRECTORIES
|
# CREATE DIRECTORIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
mkdir -p /home/yunohost.${app}/uploads
|
#mkdir -p /home/yunohost.${app}/uploads
|
||||||
mkdir -p /home/yunohost.${app}/uploads/{big,medium,small,thumb,import}
|
#mkdir -p /home/yunohost.${app}/uploads/{big,medium,small,thumb,import}
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SECURE FILES AND DIRECTORIES
|
# SECURE FILES AND DIRECTORIES
|
||||||
|
@ -143,8 +143,8 @@ mkdir -p /home/yunohost.${app}/uploads/{big,medium,small,thumb,import}
|
||||||
|
|
||||||
# Set permissions to app files
|
# Set permissions to app files
|
||||||
chown -R $app: $final_path
|
chown -R $app: $final_path
|
||||||
chown -R $app: /home/yunohost.${app}
|
#chown -R $app: /home/yunohost.${app}
|
||||||
chmod -R 750 /home/yunohost.${app}/uploads
|
#chmod -R 750 /home/yunohost.${app}
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SSOWAT
|
# SETUP SSOWAT
|
||||||
|
|
|
@ -65,10 +65,10 @@ ynh_system_user_create --username=$app
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE DATA
|
# 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.
|
# 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
|
# RESTORE USER RIGHTS
|
||||||
|
|
|
@ -138,7 +138,7 @@ ynh_store_file_checksum --file="$final_path/.env"
|
||||||
|
|
||||||
# Set permissions on app files
|
# Set permissions on app files
|
||||||
chown -R $app: $final_path
|
chown -R $app: $final_path
|
||||||
chmod -R 750 /home/yunohost.$app/{uploads,data}
|
#chmod -R 750 /home/yunohost.$app/{uploads,data}
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RELOAD NGINX
|
# RELOAD NGINX
|
||||||
|
|
Loading…
Reference in a new issue