fix(jackett): copy config into /config/Jackett expected by linuxserver image
Sync HTPC Manifests to GitOps / Sync Manifests to GitOps Repo (push) Successful in 4s
Sync HTPC Manifests to GitOps / Sync Manifests to GitOps Repo (push) Successful in 4s
This commit is contained in:
@@ -30,9 +30,14 @@ spec:
|
|||||||
- /bin/bash
|
- /bin/bash
|
||||||
- -c
|
- -c
|
||||||
- |
|
- |
|
||||||
if [ ! -f /config/ServerConfig.json ] && [ -f /host-config/ServerConfig.json ]; then
|
mkdir -p /config/Jackett
|
||||||
echo "Migrating Jackett config and indexers from host..."
|
if [ ! -f /config/Jackett/ServerConfig.json ] || [ -f /config/ServerConfig.json ]; then
|
||||||
cp -a /host-config/* /config/
|
echo "Syncing Jackett config and indexers from host..."
|
||||||
|
[ -d /host-config/Indexers ] && cp -a /host-config/Indexers /config/Jackett/
|
||||||
|
[ -d /host-config/DataProtection ] && cp -a /host-config/DataProtection /config/Jackett/
|
||||||
|
[ -f /host-config/ServerConfig.json ] && cp -a /host-config/ServerConfig.json /config/Jackett/
|
||||||
|
# Remove misplaced root files if present
|
||||||
|
rm -rf /config/Indexers /config/ServerConfig.json /config/DataProtection /config/log.txt* /config/updater.txt*
|
||||||
fi
|
fi
|
||||||
chown -R 33:33 /config
|
chown -R 33:33 /config
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
|||||||
Reference in New Issue
Block a user