Skip to content

Commit

Permalink
freshrss: remove index.html files
Browse files Browse the repository at this point in the history
Freshrss 1.21.0 and newer checks if it can write to index.html in several
directories. Every time webapp-config runs it reinstalls these files with
the webserver user as their owner. RSS feed refresh script fails to run
if PHP user cannot write to the required files causing the refresh to fail.
Introduced by FreshRSS/FreshRSS#4780.
  • Loading branch information
anders-larsson committed Mar 4, 2023
1 parent 9c2cbc8 commit 08673ba
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
4 changes: 2 additions & 2 deletions www-apps/freshrss/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ EBUILD freshrss-1.19.2.ebuild 1142 BLAKE2B b7a96b8926ac5ca6c824265b5dfed51efebd1
EBUILD freshrss-1.20.0.ebuild 1142 BLAKE2B b7a96b8926ac5ca6c824265b5dfed51efebd141b6c5978649213a33db0ce5fab7ea6cf021abeb6757aabed14b8f813a2bebb39fff461ad2528f1a1d64482fef0 SHA512 734c693aa54866fb9d34a78d3884f4296d1fc967c18012546fa2dd431e851c3d9aaaf1f64da20a959b13ee027b0ba92d1176d1305c560a1bb4737b862130a860
EBUILD freshrss-1.20.1.ebuild 1142 BLAKE2B b7a96b8926ac5ca6c824265b5dfed51efebd141b6c5978649213a33db0ce5fab7ea6cf021abeb6757aabed14b8f813a2bebb39fff461ad2528f1a1d64482fef0 SHA512 734c693aa54866fb9d34a78d3884f4296d1fc967c18012546fa2dd431e851c3d9aaaf1f64da20a959b13ee027b0ba92d1176d1305c560a1bb4737b862130a860
EBUILD freshrss-1.20.2.ebuild 1142 BLAKE2B b7a96b8926ac5ca6c824265b5dfed51efebd141b6c5978649213a33db0ce5fab7ea6cf021abeb6757aabed14b8f813a2bebb39fff461ad2528f1a1d64482fef0 SHA512 734c693aa54866fb9d34a78d3884f4296d1fc967c18012546fa2dd431e851c3d9aaaf1f64da20a959b13ee027b0ba92d1176d1305c560a1bb4737b862130a860
EBUILD freshrss-1.21.0.ebuild 1142 BLAKE2B b7a96b8926ac5ca6c824265b5dfed51efebd141b6c5978649213a33db0ce5fab7ea6cf021abeb6757aabed14b8f813a2bebb39fff461ad2528f1a1d64482fef0 SHA512 734c693aa54866fb9d34a78d3884f4296d1fc967c18012546fa2dd431e851c3d9aaaf1f64da20a959b13ee027b0ba92d1176d1305c560a1bb4737b862130a860
EBUILD freshrss-9999.ebuild 1142 BLAKE2B b7a96b8926ac5ca6c824265b5dfed51efebd141b6c5978649213a33db0ce5fab7ea6cf021abeb6757aabed14b8f813a2bebb39fff461ad2528f1a1d64482fef0 SHA512 734c693aa54866fb9d34a78d3884f4296d1fc967c18012546fa2dd431e851c3d9aaaf1f64da20a959b13ee027b0ba92d1176d1305c560a1bb4737b862130a860
EBUILD freshrss-1.21.0.ebuild 1686 BLAKE2B 55b936da18ed160fbea1c75c8469fef5fab50e753df2a5d147df90f6d9877a7060a19472b29d8bec59d7be587b15de9aef529ff3fbbbfff6a106266df4f2057b SHA512 23d5b8007e0dc192b2edacc46ce815c8caa93d2377a8838fc17db0eacf6fb6656db2752cc6cfc06d40c4b9ce23ccf4ccfa4eb1ee6d993d26703d723eefdd9644
EBUILD freshrss-9999.ebuild 1686 BLAKE2B 55b936da18ed160fbea1c75c8469fef5fab50e753df2a5d147df90f6d9877a7060a19472b29d8bec59d7be587b15de9aef529ff3fbbbfff6a106266df4f2057b SHA512 23d5b8007e0dc192b2edacc46ce815c8caa93d2377a8838fc17db0eacf6fb6656db2752cc6cfc06d40c4b9ce23ccf4ccfa4eb1ee6d993d26703d723eefdd9644
MISC metadata.xml 569 BLAKE2B f78e94f7f98dfae2ba56af32c4f2693b7effbead51f620224e2a19dc73a6fb56ca29296bcbf87034ad3d03653dfd4d5460bcbbba4192a14437ed1c0dae0628aa SHA512 04bed1f4fc1b60bfe8de05889027142926f1c813ef7ef3c64978acf381263662b76a5587ce5172c818c0ac5419764af237b4c956653ab32cfdb2882476e49efb
16 changes: 15 additions & 1 deletion www-apps/freshrss/freshrss-1.21.0.ebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7
Expand Down Expand Up @@ -41,6 +41,20 @@ need_httpd_cgi # From webapp.eclass
src_install() {
webapp_src_preinst

# freshrss 1.21.0 and newer checks if it can write to index.html in several
# directories. Every time webapp-config runs it reinstalls these files with
# the webserver user as their owner. RSS feed refresh script fails to run
# if PHP user cannot write to the required files causing the refresh to fail.
# Introduced by https://github.com/FreshRSS/FreshRSS/pull/4780.
for file in \
data/index.html \
data/cache/index.html \
data/users/index.html \
data/favicons/index.html \
data/tokens/index.html; do
rm -f $file
done

insinto "/${MY_HTDOCSDIR}"
doins -r *

Expand Down
16 changes: 15 additions & 1 deletion www-apps/freshrss/freshrss-9999.ebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7
Expand Down Expand Up @@ -41,6 +41,20 @@ need_httpd_cgi # From webapp.eclass
src_install() {
webapp_src_preinst

# freshrss 1.21.0 and newer checks if it can write to index.html in several
# directories. Every time webapp-config runs it reinstalls these files with
# the webserver user as their owner. RSS feed refresh script fails to run
# if PHP user cannot write to the required files causing the refresh to fail.
# Introduced by https://github.com/FreshRSS/FreshRSS/pull/4780.
for file in \
data/index.html \
data/cache/index.html \
data/users/index.html \
data/favicons/index.html \
data/tokens/index.html; do
rm -f $file
done

insinto "/${MY_HTDOCSDIR}"
doins -r *

Expand Down

0 comments on commit 08673ba

Please sign in to comment.