#!/bin/shset-e# Ensure the configuration directory existsmkdir -p /etc/cot# Copy the default configuration file if it doesn't existif[!-f /etc/cot/config.toml ];thencp /usr/local/bin/config.toml /etc/cot/config.tomlfi# Restart the service if it's runningifsystemctl is-active --quiet cot;thensystemctl restart cotfiexit 0