kube-cascade/sabnzbd/scripts.yaml

24 lines
420 B
YAML
Raw Normal View History

2023-08-20 20:40:48 +00:00
apiVersion: v1
data:
pp.sh: |
#!/bin/bash
set -e
cd "$SAB_COMPLETE_DIR"
if [ $SAB_UNPACK -eq 0 ];then
echo Skipping Extra Unpack
exit 0
fi
if [ $SAB_UNPACK -ne 0 ];then
find . -name '*.part01.rar' -exec unrar x {} +
find . -name '*.zip' -exec unzip {} +
fi
kind: ConfigMap
metadata:
creationTimestamp: null
name: sabnzbd-scripts
namespace: sabnzbd