aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2020-08-09 19:11:28 +0200
committerLeo <thinkabit.ukim@gmail.com>2020-08-13 09:54:21 +0000
commit274f3752c7da9240c5d99a9d083b272d0f41e0a2 (patch)
treebf9fce79f6641ee60366c3f24f02e3f48a0de853
parente51b822d037e2a4f760e2c0cbc97da40ec818994 (diff)
downloadaports-274f3752c7da9240c5d99a9d083b272d0f41e0a2.tar.gz
aports-274f3752c7da9240c5d99a9d083b272d0f41e0a2.tar.bz2
aports-274f3752c7da9240c5d99a9d083b272d0f41e0a2.tar.xz
community/mautrix-telegram: save logfiles in /var/log/mautrix-telegram
This fixes logrotation, as mautrix-telegram can't move the logfile from /var/log/mautrix-telegram.log to /var/log/mautrix-telegram.log.1 since it doesn't have permission to do so in /var/log/
-rw-r--r--community/mautrix-telegram/APKBUILD6
-rw-r--r--community/mautrix-telegram/default-log-dir.patch2
-rw-r--r--community/mautrix-telegram/mautrix-telegram.initd2
3 files changed, 5 insertions, 5 deletions
diff --git a/community/mautrix-telegram/APKBUILD b/community/mautrix-telegram/APKBUILD
index ad13b1a40e..7b146eb355 100644
--- a/community/mautrix-telegram/APKBUILD
+++ b/community/mautrix-telegram/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=mautrix-telegram
pkgver=0.8.2_git20200801
-pkgrel=0
+pkgrel=1
_commit="bc4610af045f46f62927845959760b7e26c75659"
pkgdesc="A Matrix-Telegram hybrid puppeting/relaybot bridge"
url="https://github.com/tulir/mautrix-telegram"
@@ -46,6 +46,6 @@ package() {
"$pkgdir"/usr/share/mautrix-telegram/
}
sha512sums="4e1a61da924719a3f7fdada539c1b57c84660d8567a706a6039e79a284368d093acbd06e43bf77d1765299f2d3e301142783e5c7090fbae1229a342666f8946f mautrix-telegram-bc4610af045f46f62927845959760b7e26c75659.tar.gz
-394e50290a212e0f68a9b4d53dfa181df3cc0494f01c88d701db018bc1ec454f0f92fd56b750c6229ffaf0d1b6832f9f2177a3a1444b9a3b92d23ad3194b566c mautrix-telegram.initd
+1286a846f729020669a4640ec74530d09c8da103d9f9fd10e6bf17e3258fde825c9a616e5654178a4314b160fed2c94b4ab1e49ebfed738b422f4ededf01b989 mautrix-telegram.initd
7b3c15dd2d0671c4c777bcf4f2e905d9a0b639a54828313ac9db1a9793fde3d092e92f18aa896bff94b9a81db3df74b3de65661c6879cb648d36f5cec2437df0 mautrix-telegram.confd
-7e75b46226c928f3aa64b13a3042eae7da164006b262f40ff5bbfdda9e91c80c2189a009735539d2349a638ad11c6ce0bf4bd93db12f485cb4906553283512c3 default-log-dir.patch"
+09e9afa45341927fc6085573aaa8a2b3816ad75b664d57ebd2e44cab2612f97972f022e66a4b98e5cd1c7421d257859ffa5333201f11a5666cdaa470b8618c03 default-log-dir.patch"
diff --git a/community/mautrix-telegram/default-log-dir.patch b/community/mautrix-telegram/default-log-dir.patch
index eaccc4df41..2b33ee16e5 100644
--- a/community/mautrix-telegram/default-log-dir.patch
+++ b/community/mautrix-telegram/default-log-dir.patch
@@ -10,7 +10,7 @@ index 70bc111..9875175 100644
class: logging.handlers.RotatingFileHandler
formatter: normal
- filename: ./mautrix-telegram.log
-+ filename: /var/log/mautrix-telegram.log
++ filename: /var/log/mautrix-telegram/mautrix-telegram.log
maxBytes: 10485760
backupCount: 10
console:
diff --git a/community/mautrix-telegram/mautrix-telegram.initd b/community/mautrix-telegram/mautrix-telegram.initd
index 37ec98c672..93f2d0d899 100644
--- a/community/mautrix-telegram/mautrix-telegram.initd
+++ b/community/mautrix-telegram/mautrix-telegram.initd
@@ -16,5 +16,5 @@ depends() {
start_pre() {
checkpath --file --owner "$command_user" /etc/mautrix-telegram/config.yaml
- checkpath --file --owner "$command_user" /var/log/mautrix-telegram.log
+ checkpath --directory --owner "$command_user" /var/log/mautrix-telegram
}