diff --git a/scripts/backup b/scripts/backup index fffab08..f19b290 100644 --- a/scripts/backup +++ b/scripts/backup @@ -49,13 +49,6 @@ ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf" #================================================= # SPECIFIC BACKUP -#================================================= -# BACKUP LOGROTATE -#================================================= -ynh_print_info "Backing up logrotate configuration..." - -ynh_backup "/etc/logrotate.d/$app" - #================================================= # BACKUP SYSTEMD #================================================= diff --git a/scripts/install b/scripts/install index afd1d21..f17d47d 100644 --- a/scripts/install +++ b/scripts/install @@ -70,10 +70,6 @@ ynh_app_setting_set $app sync_port $sync_port #================================================= ynh_print_info "Setting up source files..." -### `ynh_setup_source` is used to install an app from a zip or tar.gz file, -### downloaded from an upstream source, like a git repository. -### `ynh_setup_source` use the file conf/app.src - ynh_app_setting_set $app final_path $final_path # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source "$final_path" @@ -140,14 +136,6 @@ ynh_store_file_checksum "$config_file" # Set permissions to app files chown -R $app: $final_path -#================================================= -# SETUP LOGROTATE -#================================================= -ynh_print_info "Configuring log rotation..." - -# Use logrotate to manage application logfile(s) -ynh_use_logrotate - #================================================= # ADVERTISE SERVICE IN ADMIN PANEL #================================================= diff --git a/scripts/remove b/scripts/remove index 3dda65f..2d35488 100644 --- a/scripts/remove +++ b/scripts/remove @@ -62,14 +62,6 @@ ynh_print_info "Removing nginx web server configuration" # Remove the dedicated nginx config ynh_remove_nginx_config -#================================================= -# REMOVE LOGROTATE CONFIGURATION -#================================================= -ynh_print_info "Removing logrotate configuration" - -# Remove the app-specific logrotate config -ynh_remove_logrotate - #================================================= # CLOSE A PORT #================================================= diff --git a/scripts/restore b/scripts/restore index ed082eb..76f329a 100644 --- a/scripts/restore +++ b/scripts/restore @@ -88,12 +88,6 @@ systemctl enable $app.service yunohost service add $app --description "$app daemon for Syncthing" -#================================================= -# RESTORE THE LOGROTATE CONFIGURATION -#================================================= - -ynh_restore_file "/etc/logrotate.d/$app" - #================================================= # GENERIC FINALIZATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 01b8405..a65b426 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -77,14 +77,6 @@ ynh_backup_if_checksum_is_different "$config_file" # Recalculate and store the checksum of the file for the next upgrade. ynh_store_file_checksum "$config_file" -#================================================= -# SETUP LOGROTATE -#================================================= -ynh_print_info "Upgrading logrotate configuration..." - -# Use logrotate to manage app-specific logfile(s) -ynh_use_logrotate --non-append - #================================================= # SETUP SYSTEMD #=================================================