aboutsummaryrefslogtreecommitdiff
path: root/apks/reddit-nextcloud-importer
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-10-16 21:41:00 +0000
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-10-16 21:41:00 +0000
commit595e07ac484ea0beb0066e7e2ad74f4137083748 (patch)
treed0398e2cafa1a5c97fe084594fab63987ea1decf /apks/reddit-nextcloud-importer
parent1f3d49e8a3c5479a19c68c5dedf852b463b54301 (diff)
downloadapkbuilds-595e07ac484ea0beb0066e7e2ad74f4137083748.tar.gz
apkbuilds-595e07ac484ea0beb0066e7e2ad74f4137083748.tar.bz2
apkbuilds-595e07ac484ea0beb0066e7e2ad74f4137083748.zip
fix: Update service to support extended service
Diffstat (limited to 'apks/reddit-nextcloud-importer')
-rw-r--r--apks/reddit-nextcloud-importer/APKBUILD6
-rw-r--r--apks/reddit-nextcloud-importer/reddit-nextcloud-importer.confd3
-rw-r--r--apks/reddit-nextcloud-importer/reddit-nextcloud-importer.initd4
3 files changed, 9 insertions, 4 deletions
diff --git a/apks/reddit-nextcloud-importer/APKBUILD b/apks/reddit-nextcloud-importer/APKBUILD
index 92ba711..d125f82 100644
--- a/apks/reddit-nextcloud-importer/APKBUILD
+++ b/apks/reddit-nextcloud-importer/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Gabriel Arakaki Giovanini <mail@gabrielgio.me>
pkgname=reddit-nextcloud-importer
pkgver=0.1.2
-pkgrel=0
+pkgrel=1
pkgdesc="A process to import images and videos from saved post on reddit to a instance of Nextcloud."
url="https://git.sr.ht/~gabrielgio/reddit-nextcloud-importer"
arch="noarch"
@@ -45,6 +45,6 @@ package() {
sha512sums="
aa4274d5b904c15bf262e59fbc50de58d414f660b3e3214cd44ebab0aa2f80ed890ed5bb9190df555118d8dbec81e41553816fcffc3fe1770f347c394501910d reddit-nextcloud-importer-0.1.2.tar.gz
-dcb6610f8b83928922b6b7cbe78ceb860baad31e38cc90ed70ab7aed6527193027c9d03e8c5289ca390966a0774da16334a94e2e183e896e7126165d071b173c reddit-nextcloud-importer.initd
-64e63e65506478f5b9ad89b84539c8e4310e9f0239278d8776dae26ff60eee5f21621cc665e343a1f92e4705e2f95308d2108cf16012a5c9d8cbc5c20c89eb89 reddit-nextcloud-importer.confd
+718c5997338db00418c3070007c38c8fad1743e8e17e5ef3e7d25d2d40ae9474bd51edd450b854e588595cc62502a18aaa7945a2b8227a5480bb2f805a1bda1a reddit-nextcloud-importer.initd
+83695d870b1a5d6d914c268001084ba5a4a65842b5ee8243736a45810822bc493af1990a6a5ca71dfd623f932388824edb5dced8f4fefadc95c55d1513e0db93 reddit-nextcloud-importer.confd
"
diff --git a/apks/reddit-nextcloud-importer/reddit-nextcloud-importer.confd b/apks/reddit-nextcloud-importer/reddit-nextcloud-importer.confd
index ad77d8b..d418812 100644
--- a/apks/reddit-nextcloud-importer/reddit-nextcloud-importer.confd
+++ b/apks/reddit-nextcloud-importer/reddit-nextcloud-importer.confd
@@ -5,3 +5,6 @@ reddit_password=""
nextcloud_host=""
nextcloud_username=""
nextcloud_password=""
+
+# File to redirect stdout/stderr into. Set to empty string to disable.
+#logfile="/var/log/$RC_SVCNAME.log"
diff --git a/apks/reddit-nextcloud-importer/reddit-nextcloud-importer.initd b/apks/reddit-nextcloud-importer/reddit-nextcloud-importer.initd
index 0f37c10..7b48eeb 100644
--- a/apks/reddit-nextcloud-importer/reddit-nextcloud-importer.initd
+++ b/apks/reddit-nextcloud-importer/reddit-nextcloud-importer.initd
@@ -7,7 +7,9 @@ command_args=" -c ${client_id} -s ${client_secret} -u ${reddit_username} -p ${re
command_background="yes"
supervise_daemon_args="--user www-data:www-data"
-pidfile="/run/$name.pid"
+pidfile="/run/$RC_SVCNAME.pid"
+output_log="$logfile"
+error_log="$logfile"
depend() {
use net