Files
OliveTin/var/helper-actions/olivetin-get-theme
James Read 482ef0e5e8 feature: Helper scripts for ssh, themes, etc (#349)
* feature: Helper scripts for ssh, themes, etc

* cicd: Update goreleaser to support v2 .goreleaser.yml files
2024-07-07 22:10:33 +00:00

13 lines
356 B
Bash
Executable File

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