diff --git a/conf/.env.example b/conf/.env.example index 3ea19df..4e99c76 100644 --- a/conf/.env.example +++ b/conf/.env.example @@ -18,9 +18,6 @@ media.baseURL="https://__DOMAIN__" admin.gateway="cp-admin" auth.gateway="cp-auth" -#media.root="media" -#media.storage="__DATA_DIR__" - #-------------------------------------------------------------------- # Database configuration #-------------------------------------------------------------------- diff --git a/manifest.toml b/manifest.toml index 37029e0..06b3624 100644 --- a/manifest.toml +++ b/manifest.toml @@ -51,8 +51,6 @@ ram.runtime = "50M" [resources.install_dir] - [resources.data_dir] - [resources.permissions] main.url = "/" diff --git a/scripts/backup b/scripts/backup index 602cb5e..8af0451 100755 --- a/scripts/backup +++ b/scripts/backup @@ -20,13 +20,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 #================================================= diff --git a/scripts/install b/scripts/install index 3fa7318..a688986 100755 --- a/scripts/install +++ b/scripts/install @@ -16,7 +16,6 @@ source /usr/share/yunohost/helpers fpm_footprint="low" fpm_free_footprint=0 fpm_usage="low" -email=$(ynh_user_get_info --username=$admin --key=mail) ynh_app_setting_set --app=$app --key=fpm_footprint --value=$fpm_footprint ynh_app_setting_set --app=$app --key=fpm_free_footprint --value=$fpm_free_footprint diff --git a/scripts/remove b/scripts/remove index 39d1cc8..5de38ad 100755 --- a/scripts/remove +++ b/scripts/remove @@ -9,13 +9,6 @@ source _common.sh source /usr/share/yunohost/helpers -#================================================= -# LOAD SETTINGS -#================================================= -# ynh_script_progression --message="Loading installation settings..." --weight=1 - -# redis_db=$(ynh_app_setting_get --app=$app --key=redis_db) - #================================================= # REMOVE THE REDIS DATABASE #================================================= diff --git a/scripts/restore b/scripts/restore index 32d510c..6e0a9ef 100755 --- a/scripts/restore +++ b/scripts/restore @@ -20,16 +20,6 @@ ynh_restore_file --origin_path="$install_dir" chmod -R o-rwx "$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 #=================================================