From f37564dadbfb534604b5f62410e6a9a267507b23 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 28 Dec 2021 11:37:43 +0100 Subject: [PATCH 1/5] set cron --- scripts/backup | 6 ++++++ scripts/remove | 8 ++++++++ scripts/restore | 7 +++++++ 3 files changed, 21 insertions(+) diff --git a/scripts/backup b/scripts/backup index edae2c2..719bc83 100644 --- a/scripts/backup +++ b/scripts/backup @@ -58,6 +58,12 @@ ynh_backup --src_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" ynh_backup --src_path="/etc/systemd/system/$app.service" +#================================================= +# BACKUP VARIOUS FILES +#================================================= + +ynh_backup --src_path="/etc/cron.d/$app" + #================================================= # BACKUP THE MYSQL DATABASE #================================================= diff --git a/scripts/remove b/scripts/remove index 53b546e..65fe5bc 100644 --- a/scripts/remove +++ b/scripts/remove @@ -82,6 +82,14 @@ ynh_script_progression --message="Removing dependencies..." --weight=1 # Remove metapackage and its dependencies ynh_remove_app_dependencies +#================================================= +# REMOVE VARIOUS FILES +#================================================= +ynh_script_progression --message="Removing various files..." --weight=1 + +# Remove a cron file +ynh_secure_remove --file="/etc/cron.d/$app" + #================================================= # GENERIC FINALIZATION #================================================= diff --git a/scripts/restore b/scripts/restore index 7a5b057..c009a3b 100644 --- a/scripts/restore +++ b/scripts/restore @@ -92,6 +92,13 @@ db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd) ynh_mysql_setup_db --db_user=$db_user --db_name=$db_name --db_pwd=$db_pwd ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql +#================================================= +# RESTORE VARIOUS FILES +#================================================= +ynh_script_progression --message="Restoring various files..." --weight=1 + +ynh_restore_file --origin_path="/etc/cron.d/$app" + #================================================= # RESTORE SYSTEMD #================================================= From d0654f53a52d7667eac3721080d50e102ad21f82 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 28 Dec 2021 11:48:53 +0100 Subject: [PATCH 2/5] Update config.php --- conf/config.php | 61 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/conf/config.php b/conf/config.php index 0d4cc0e..bc26f5f 100644 --- a/conf/config.php +++ b/conf/config.php @@ -132,3 +132,64 @@ putenv('TTRSS_SESSION_COOKIE_LIFETIME='.(86400*30)); // Default lifetime of a session (e.g. login) cookie. In seconds, // 0 means cookie will be deleted when browser closes. + + // ********************************* + // *** Email and digest settings *** + // ********************************* + + putenv('TTRSS_SMTP_FROM_NAME=Tiny Tiny RSS'); + putenv('TTRSS_SMTP_FROM_ADDRESS=noreply@your.domain.dom'); + // Name, address and subject for sending outgoing mail. This applies + // to password reset notifications, digest emails and any other mail. + + putenv('TTRSS_DIGEST_SUBJECT=[tt-rss] New headlines for last 24 hours'); + // Subject line for email digests + + putenv('TTRSS_SMTP_SERVER=localhost:25'); + // Hostname:port combination to send outgoing mail (i.e. localhost:25). + // Blank - use system MTA. + + putenv('TTRSS_SMTP_LOGIN='); + putenv('TTRSS_SMTP_PASSWORD='); + // These two options enable SMTP authentication when sending + // outgoing mail. Only used with SMTP_SERVER. + + putenv('TTRSS_SMTP_SECURE='); + // Used to select a secure SMTP connection. Allowed values: ssl, tls, + // or empty. + + // *************************************** + // *** Other settings (less important) *** + // *************************************** + + putenv('TTRSS_CHECK_FOR_UPDATES=true'); + // Check for updates automatically if running Git version + + putenv('TTRSS_ENABLE_GZIP_OUTPUT=false'); + // Selectively gzip output to improve wire performance. This requires + // PHP Zlib extension on the server. + // Enabling this can break tt-rss in several httpd/php configurations, + // if you experience weird errors and tt-rss failing to start, blank pages + // after login, or content encoding errors, disable it. + + putenv('TTRSS_PLUGINS=auth_internal, note'); + // Comma-separated list of plugins to load automatically for all users. + // System plugins have to be specified here. Please enable at least one + // authentication plugin here (auth_*). + // Users may enable other user plugins from Preferences/Plugins but may not + // disable plugins specified in this list. + // Disabling auth_internal in this list would automatically disable + // reset password link on the login form. + + putenv('TTRSS_LOG_DESTINATION=sql'); + // Log destination to use. Possible values: sql (uses internal logging + // you can read in Preferences -> System), syslog - logs to system log. + // Setting this to blank uses PHP logging (usually to http server + // error.log). + + putenv('TTRSS_CONFIG_VERSION=26'); + // Expected config version. Please update this option in config.php + // if necessary (after migrating all new options from this file). + + // vim:ft=php + From 5f216d3fd58e016f9e77b9c820ab9831a0fb7281 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 28 Dec 2021 11:49:29 +0100 Subject: [PATCH 3/5] Update config.php --- conf/config.php | 1 - 1 file changed, 1 deletion(-) diff --git a/conf/config.php b/conf/config.php index bc26f5f..dab1552 100644 --- a/conf/config.php +++ b/conf/config.php @@ -192,4 +192,3 @@ // if necessary (after migrating all new options from this file). // vim:ft=php - From 37c59466f2c4e561c2b76aa378ed673f969c3ac7 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 30 Dec 2021 15:58:35 +0100 Subject: [PATCH 4/5] Update config.php --- conf/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/config.php b/conf/config.php index dab1552..c25910c 100644 --- a/conf/config.php +++ b/conf/config.php @@ -25,7 +25,7 @@ // You need to set this option correctly otherwise several features // including PUSH, bookmarklets and browser integration will not work properly. - putenv('TTRSS_SINGLE_USER_MODE=true'); + putenv('TTRSS_SINGLE_USER_MODE=false'); // Operate in single user mode, disables all functionality related to // multiple users and authentication. Enabling this assumes you have // your tt-rss directory protected by other means (e.g. http auth). From 288a3a02085b2a23577adbbd2e5f7dce26cf0982 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 5 Jan 2022 10:33:16 +0100 Subject: [PATCH 5/5] Update app.src --- conf/app.src | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/app.src b/conf/app.src index 5c4a4c6..f70d0ab 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://git.tt-rss.org/fox/tt-rss/archive/7aeaa1b039b269c75e543045dcf8c077b3aa258d.tar.gz -SOURCE_SUM=379d96fc026e76c6325908638e953a93ab4f6bb29da99ad7a0ea203fb88a6e6c +SOURCE_URL=https://git.tt-rss.org/fox/tt-rss/archive/97baf3e8b9be699d972b91a159ccbe0891efe8ae.tar.gz +SOURCE_SUM=5810abdde57daa282f470c0bb4c631596f6b6487a41ef8f27b10f0d2ad6407b0 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true