olivetin-get-theme 356 B

123456789101112
  1. #!/usr/bin/env bash
  2. olivetin-get-git-repo "$1" "/config/custom-webui/themes/$2"
  3. if grep -E -q "^themeName" /config/config.yaml; then
  4. echo "Updating theme in config file"
  5. sed -i "s/^themeName:.*/themeName: $2/g" /config/config.yaml
  6. else
  7. echo "themeName: $2" >> /config/config.yaml
  8. fi
  9. echo "You must restart OliveTin for theme changes to take effect."