From 8d46b9d53750cbaf23d2e51855ff9bfceabe33f7 Mon Sep 17 00:00:00 2001 From: TheSpad Date: Wed, 16 Nov 2022 20:25:00 +0000 Subject: [PATCH 1/2] Use root crontab and setuidgid --- root/etc/crontabs/abc | 1 - root/etc/crontabs/root | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) delete mode 100644 root/etc/crontabs/abc create mode 100644 root/etc/crontabs/root diff --git a/root/etc/crontabs/abc b/root/etc/crontabs/abc deleted file mode 100644 index fbfbfc1..0000000 --- a/root/etc/crontabs/abc +++ /dev/null @@ -1 +0,0 @@ -*/15 * * * * python3 /usr/bin/feed2toot -l 5 -c /config/feed2toot.ini 2>&1 \ No newline at end of file diff --git a/root/etc/crontabs/root b/root/etc/crontabs/root new file mode 100644 index 0000000..2667bf0 --- /dev/null +++ b/root/etc/crontabs/root @@ -0,0 +1 @@ +*/15 * * * * s6-setuidgid abc python3 /usr/bin/feed2toot -l 5 -c /config/feed2toot.ini 2>&1 \ No newline at end of file From f0c92c494e8ee28805f29f2c509ee3cec2c67162 Mon Sep 17 00:00:00 2001 From: TheSpad Date: Wed, 16 Nov 2022 22:07:12 +0000 Subject: [PATCH 2/2] Fix chown --- root/etc/s6-overlay/s6-rc.d/init-feed2toot-config/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/etc/s6-overlay/s6-rc.d/init-feed2toot-config/run b/root/etc/s6-overlay/s6-rc.d/init-feed2toot-config/run index fe721d1..7ceba94 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-feed2toot-config/run +++ b/root/etc/s6-overlay/s6-rc.d/init-feed2toot-config/run @@ -11,5 +11,5 @@ if [[ -n ${FEED_LIMIT} ]]; then fi # permissions -lsiown abc:abc \ +lsiown -R abc:abc \ /config