Enable variable checks and add comment

This commit is contained in:
Alex D. 2021-06-06 18:24:09 +00:00
parent 2c3d7d87a9
commit 6e7375f411
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
3 changed files with 13 additions and 6 deletions

View File

@ -4,7 +4,7 @@
. ../APKBUILD-config.template
pkgver=2021.06.01.03
pkgrel=0
pkgrel=1
depends="dovecot-lmtpd dovecot-pgsql redxen-secret-letsencrypt-chain redxen-secret-letsencrypt-private"
_rx_dovecot_base_src="
dovecot.conf

View File

@ -11,10 +11,15 @@ source="
secret
"
prepare() {
default_prepare
install -D "redxen.ini" "redxen-mod.ini"
build() {
. secret
: "${POSTGRESQL_GITEA_PASSWORD:?'PostgreSQL database access password missing'}"
: "${GITEA_SECRET_KEY:?'Gitea secret key is missing'}"
: "${GITEA_INTERNAL_TOKEN:?'Gitea internal token is missing'}"
: "${GITEA_MAILER_PASSWD:?'Gitea SMTP password is missing'}"
: "${GITEA_OAUTH_JWT_TOKEN:?'Gitea OAuth token is missing'}"
cp redxen.ini redxen-mod.ini
rx_replace "POSTGRESQL_GITEA_PASSWORD" "$POSTGRESQL_GITEA_PASSWORD" "redxen-mod.ini"
rx_replace "GITEA_SECRET_KEY" "$GITEA_SECRET_KEY" "redxen-mod.ini"
rx_replace "GITEA_INTERNAL_TOKEN" "$GITEA_INTERNAL_TOKEN" "redxen-mod.ini"

View File

@ -4,8 +4,8 @@
. ../APKBUILD-config.template
pkgver=2021.06.06.03
pkgrel=0
options=""
pkgrel=1
options="" # Disables defaults, enabling checks
checkdepends="telegraf"
source="
main.conf
@ -28,6 +28,8 @@ done
build() {
. secret
: "${POSTGRESQL_PASSWORD:?'PostgreSQL database access password missing'}"
cp postgresql.conf postgresql.conf-mod
rx_replace "POSTGRESQL_PASSWORD" "$POSTGRESQL_PASSWORD" "postgresql.conf-mod"
}