startup script
This commit is contained in:
19
cluster/apps/invidious/inv-start-sh.yml
Normal file
19
cluster/apps/invidious/inv-start-sh.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: invidious-startup-script
|
||||
data:
|
||||
start.sh: |
|
||||
#!/bin/sh
|
||||
# Create the config directory if it doesn't exist
|
||||
mkdir -p /etc/invidious
|
||||
|
||||
# Get the base config from environment variable
|
||||
echo "$INVIDIOUS_CONFIG" > /etc/invidious/config.yml
|
||||
|
||||
# Inject the hmac_key from the secret
|
||||
sed -i "s/hmac_key:.*/hmac_key: \"${hmac_key}\"/" /etc/invidious/config.yml
|
||||
|
||||
# Start the application
|
||||
exec /invidious/invidious
|
||||
Reference in New Issue
Block a user