Hello community,
here is the log from the commit of package opensuse-minidlna-image for
openSUSE:Factory checked in at 2020-12-15 12:31:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/opensuse-minidlna-image (Old)
and /work/SRC/openSUSE:Factory/.opensuse-minidlna-image.new.2328 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "opensuse-minidlna-image"
Tue Dec 15 12:31:25 2020 rev:2 rq:855932 version:1.0.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/opensuse-minidlna-image/opensuse-minidlna-image.changes
2020-12-10 15:59:07.646910347 +0100
+++
/work/SRC/openSUSE:Factory/.opensuse-minidlna-image.new.2328/opensuse-minidlna-image.changes
2020-12-15 12:33:15.716139418 +0100
@@ -1,0 +2,5 @@
+Mon Dec 14 18:37:03 UTC 2020 - Thorsten Kukuk <[email protected]>
+
+- Fix parsing of environment variables (whitespaces in values)
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ entrypoint.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/usr/local/bin/entrypoint.sh
new/usr/local/bin/entrypoint.sh
--- old/usr/local/bin/entrypoint.sh 2020-12-01 09:57:47.782203923 +0100
+++ new/usr/local/bin/entrypoint.sh 2020-12-14 19:36:22.376919355 +0100
@@ -16,15 +16,16 @@
setup_config() {
# Change configuration
: > /etc/minidlna.conf
- for VAR in $(env); do
- if [[ "$VAR" =~ ^MINIDLNA_ ]]; then
- if [[ "$VAR" =~ ^MINIDLNA_MEDIA_DIR ]]; then
+ for NAME in $(awk "END { for (name in ENVIRON) { print name; }}" <
/dev/null)
+ do
+ VAL="$(awk "END { printf ENVIRON[\"$NAME\"]; }" < /dev/null)"
+ if [[ "$NAME" =~ ^MINIDLNA_ ]]; then
+ if [[ "$NAME" =~ ^MINIDLNA_MEDIA_DIR ]]; then
minidlna_name='media_dir'
else
- minidlna_name=$(echo "$VAR" | sed -r "s/MINIDLNA_(.*)=.*/\\1/g"
| tr '[:upper:]' '[:lower:]')
+ minidlna_name=$(echo "$NAME" | sed -r "s/MINIDLNA_(.*)/\\1/g" |
tr '[:upper:]' '[:lower:]')
fi
- minidlna_value=$(echo "$VAR" | sed -r "s/.*=(.*)/\\1/g")
- echo "${minidlna_name}=${minidlna_value}" >> /etc/minidlna.conf
+ echo "${minidlna_name}=${VAL}" >> /etc/minidlna.conf
fi
done
# Directories have to be in a writeable place
_______________________________________________
openSUSE Commits mailing list -- [email protected]
To unsubscribe, email [email protected]
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives:
https://lists.opensuse.org/archives/list/[email protected]