From 0ac12b16c81652302de9a2029396fa634aa33066 Mon Sep 17 00:00:00 2001 From: Eivind Uggedal Date: Tue, 20 Jan 2015 12:22:09 +0000 Subject: [PATCH] miniflux: add system account (for cron) --- srcpkgs/miniflux/INSTALL.msg | 18 +++++++----------- srcpkgs/miniflux/template | 6 +++--- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/srcpkgs/miniflux/INSTALL.msg b/srcpkgs/miniflux/INSTALL.msg index 32183962d1..2aa4a250ab 100644 --- a/srcpkgs/miniflux/INSTALL.msg +++ b/srcpkgs/miniflux/INSTALL.msg @@ -1,11 +1,7 @@ -The miniflux database(s) are written to: - - /var/lib/miniflux - -The open_basedir directive in /etc/php/php.ini needs to contain this -path to allow file operations below it. - -You should also configure the process running miniflux to use -the miniflux group to be able to write to this directory. - -Lastly the pdo_sqlite extension needs to be enabled in /etc/php/php.ini. +1. The pdo_sqlite extension needs to be enabled in /etc/php/php.ini. +2. The open_basedir directive in /etc/php/php.ini needs to contain + /var/lib/miniflux to allow file operations below it. +3. The process running miniflux should be configured to use the miniflux + group to be able to write to /var/lib/miniflux. +4. A cron job for the miniflux user should be configured to update feeds: + cd /usr/share/webapps/miniflux && php cronjob.php diff --git a/srcpkgs/miniflux/template b/srcpkgs/miniflux/template index c37ab52864..181d957570 100644 --- a/srcpkgs/miniflux/template +++ b/srcpkgs/miniflux/template @@ -1,13 +1,13 @@ # Template file for 'miniflux' pkgname=miniflux version=1.1.6 -revision=3 +revision=4 noarch=yes wrksrc=$pkgname conf_files="/usr/share/webapps/${pkgname}/config.php" -system_groups="${pkgname}" +system_accounts="${pkgname}" miniflux_homedir="/var/lib/${pkgname}" -make_dirs="/var/lib/${pkgname} 2770 root ${pkgname}" +make_dirs="/var/lib/${pkgname} 2770 ${pkgname} ${pkgname}" hostmakedepends="unzip" depends="php-sqlite" short_desc="A minimalist web-based RSS reader"