From 48e47f91d9baddc93009f8bb4dfa422fe5fa02e9 Mon Sep 17 00:00:00 2001 From: Yalh Date: Tue, 15 Jan 2019 01:19:08 +0100 Subject: [PATCH] remove logrotate + service file --- conf/systemd.service | 13 ------------- scripts/backup | 2 +- scripts/install | 2 +- scripts/remove | 2 +- scripts/restore | 2 +- scripts/upgrade | 2 +- 6 files changed, 5 insertions(+), 18 deletions(-) delete mode 100644 conf/systemd.service diff --git a/conf/systemd.service b/conf/systemd.service deleted file mode 100644 index 76cdf64..0000000 --- a/conf/systemd.service +++ /dev/null @@ -1,13 +0,0 @@ -[Unit] -Description=Small description of the service -After=network.target - -[Service] -Type=simple -User=__APP__ -Group=__APP__ -WorkingDirectory=__FINALPATH__/ -ExecStart=__FINALPATH__/script >> /var/log/__APP__/__APP__.log 2>&1 - -[Install] -WantedBy=multi-user.target diff --git a/scripts/backup b/scripts/backup index bfdda6c..c97d44f 100644 --- a/scripts/backup +++ b/scripts/backup @@ -62,7 +62,7 @@ ynh_mysql_dump_db "$db_name" > db.sql # BACKUP LOGROTATE #================================================= -ynh_backup "/etc/logrotate.d/$app" +#ynh_backup "/etc/logrotate.d/$app" #================================================= # BACKUP SYSTEMD diff --git a/scripts/install b/scripts/install index abb4967..7c8ae15 100644 --- a/scripts/install +++ b/scripts/install @@ -299,7 +299,7 @@ chown -R root: $final_path ### - And the section "SETUP LOGROTATE" in the upgrade script # Use logrotate to manage application logfile(s) -ynh_use_logrotate +#ynh_use_logrotate #================================================= # ADVERTISE SERVICE IN ADMIN PANEL diff --git a/scripts/remove b/scripts/remove index 912f362..04f6bd5 100644 --- a/scripts/remove +++ b/scripts/remove @@ -81,7 +81,7 @@ ynh_remove_fpm_config #================================================= # Remove the app-specific logrotate config -ynh_remove_logrotate +#ynh_remove_logrotate #================================================= # CLOSE A PORT diff --git a/scripts/restore b/scripts/restore index ec9be76..6009143 100644 --- a/scripts/restore +++ b/scripts/restore @@ -114,7 +114,7 @@ ynh_restore_file "/etc/cron.d/$app" # RESTORE THE LOGROTATE CONFIGURATION #================================================= -ynh_restore_file "/etc/logrotate.d/$app" +#ynh_restore_file "/etc/logrotate.d/$app" #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index 7d21008..f08cc39 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -121,7 +121,7 @@ ynh_store_file_checksum "$final_path/CONFIG_FILE" #================================================= # Use logrotate to manage app-specific logfile(s) -ynh_use_logrotate --non-append +#ynh_use_logrotate --non-append #================================================= # SETUP SYSTEMD