#!/usr/bin/env bash PARAM_COLOR=$1 PARAM_TITLE=$2 CUSTOM_DIR="/usr/share/custom/cockpit-branding/custom" BRANDING_MODEL="/usr/share/custom/cockpit-branding/branding_model.css" cp -fv $BRANDING_MODEL /usr/share/custom/cockpit-branding/custom/branding.css sudo sed -i "s/BASE__THEME__TITLE/$PARAM_TITLE/g" /usr/share/custom/cockpit-branding/custom/branding.css sudo sed -i "s/BASE__THEME__COLOR/$PARAM_COLOR/g" /usr/share/custom/cockpit-branding/custom/branding.css cockpit-custom-refresh