mirror of
https://github.com/YunoHost-Apps/lychee_ynh.git
synced 2024-09-03 19:36:36 +02:00
Remove data folder
This commit is contained in:
parent
08863e09d3
commit
73fe25a6cd
5 changed files with 9 additions and 9 deletions
|
@ -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] = 50M
|
||||
; php_admin_value[post_max_size] = 50M
|
||||
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] = 600
|
||||
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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -135,7 +135,7 @@ ynh_store_file_checksum "$final_path/.env"
|
|||
# CREATE DIRECTORIES
|
||||
#=================================================
|
||||
|
||||
mkdir -p /home/yunohost.$app/{uploads,data}
|
||||
#mkdir -p /home/yunohost.$app/{uploads,data}
|
||||
|
||||
#=================================================
|
||||
# SECURE FILES AND DIRECTORIES
|
||||
|
@ -143,7 +143,7 @@ mkdir -p /home/yunohost.$app/{uploads,data}
|
|||
|
||||
# Set permissions to app files
|
||||
chown -R $app: $final_path
|
||||
chmod -R 750 /home/yunohost.$app/{uploads,data}
|
||||
#chmod -R 750 /home/yunohost.$app/{uploads,data}
|
||||
|
||||
#=================================================
|
||||
# SETUP SSOWAT
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue