mirror of
https://github.com/YunoHost-Apps/leantime_ynh.git
synced 2024-09-03 19:36:04 +02:00
fix
This commit is contained in:
parent
578d9084f4
commit
9fcd17c1a4
4 changed files with 2 additions and 22 deletions
|
@ -38,8 +38,8 @@ LEAN_KEEP_THEME = true # Keep theme and language fro
|
|||
## Fileuploads
|
||||
|
||||
# Local File Uploads
|
||||
LEAN_USER_FILE_PATH = '__DATA_DIR__/userfiles/' # Local relative path to store uploaded files (if not using S3)
|
||||
LEAN_DB_BACKUP_PATH = '__DATA_DIR__/backupdb/' # Local relative path to store backup files, need permission to write
|
||||
LEAN_USER_FILE_PATH = 'userfiles/' # Local relative path to store uploaded files (if not using S3)
|
||||
LEAN_DB_BACKUP_PATH = 'backupdb/' # Local relative path to store backup files, need permission to write
|
||||
|
||||
# S3 File Uploads
|
||||
LEAN_USE_S3 = false # Set to true if you want to use S3 instead of local files
|
||||
|
|
|
@ -53,9 +53,6 @@ ram.runtime = "50M"
|
|||
|
||||
[resources.install_dir]
|
||||
|
||||
[resources.data_dir]
|
||||
subdirs = ["userfiles", "backupdb"]
|
||||
|
||||
[resources.permissions]
|
||||
main.url = "/"
|
||||
|
||||
|
|
|
@ -21,13 +21,6 @@ ynh_print_info --message="Declaring files to be backed up..."
|
|||
|
||||
ynh_backup --src_path="$install_dir"
|
||||
|
||||
#=================================================
|
||||
# BACKUP THE DATA DIR
|
||||
#=================================================
|
||||
|
||||
# Only relevant if there is a "data_dir" resource for this app
|
||||
ynh_backup --src_path="$data_dir" --is_big
|
||||
|
||||
#=================================================
|
||||
# BACKUP THE NGINX CONFIGURATION
|
||||
#=================================================
|
||||
|
|
|
@ -19,16 +19,6 @@ ynh_restore_file --origin_path="$install_dir"
|
|||
|
||||
chown -R $app:www-data "$install_dir"
|
||||
|
||||
#=================================================
|
||||
# RESTORE THE DATA DIRECTORY
|
||||
#=================================================
|
||||
ynh_script_progression --message="Restoring the data directory..." --weight=1
|
||||
|
||||
ynh_restore_file --origin_path="$data_dir" --not_mandatory
|
||||
|
||||
# (Same as for install dir)
|
||||
chown -R $app:www-data "$data_dir"
|
||||
|
||||
#=================================================
|
||||
# RESTORE THE MYSQL DATABASE
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue