Fix audio import job: run script via bash, avoid chmod on ConfigMap.
build-and-deploy / deploy (push) Successful in 1m7s
build-and-deploy / deploy (push) Successful in 1m7s
This commit is contained in:
@@ -7,7 +7,7 @@ metadata:
|
|||||||
name: tafsirquran-audio-import
|
name: tafsirquran-audio-import
|
||||||
namespace: tafsirquran
|
namespace: tafsirquran
|
||||||
spec:
|
spec:
|
||||||
backoffLimit: 1
|
backoffLimit: 3
|
||||||
ttlSecondsAfterFinished: 86400
|
ttlSecondsAfterFinished: 86400
|
||||||
template:
|
template:
|
||||||
spec:
|
spec:
|
||||||
@@ -20,11 +20,9 @@ spec:
|
|||||||
- |
|
- |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
sed -i 's/Components: main/Components: main contrib non-free non-free-firmware/' /etc/apt/sources.list.d/debian.sources 2>/dev/null || true
|
sed -i 's/Components: main/Components: main contrib non-free non-free-firmware/' /etc/apt/sources.list.d/debian.sources 2>/dev/null || true
|
||||||
grep -q non-free /etc/apt/sources.list 2>/dev/null || echo 'deb http://deb.debian.org/debian bookworm main contrib non-free' >> /etc/apt/sources.list
|
|
||||||
apt-get update -qq
|
apt-get update -qq
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get install -y -qq curl unrar ca-certificates >/dev/null
|
DEBIAN_FRONTEND=noninteractive apt-get install -y -qq curl unrar ca-certificates >/dev/null
|
||||||
chmod +x /scripts/fetch-audio.sh
|
bash /scripts/fetch-audio.sh /data/audio
|
||||||
/scripts/fetch-audio.sh /data/audio
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: audio
|
- name: audio
|
||||||
mountPath: /data/audio
|
mountPath: /data/audio
|
||||||
|
|||||||
Reference in New Issue
Block a user