Improvements to the init scripts

This commit is contained in:
Josh.5
2023-10-02 19:43:50 +13:00
parent ca7521d765
commit 8f32302c0f
16 changed files with 148 additions and 140 deletions

View File

@@ -1,15 +1,15 @@
echo "**** Configure Sunshine ****"
print_header "Configure Sunshine"
if ([ "${MODE}" != "s" ] && [ "${MODE}" != "secondary" ]); then
if [ "${ENABLE_SUNSHINE:-}" = "true" ]; then
echo "Enable Sunshine server"
print_step_header "Enable Sunshine server"
sed -i 's|^autostart.*=.*$|autostart=true|' /etc/supervisor.d/sunshine.ini
else
echo "Disable Sunshine server"
print_step_header "Disable Sunshine server"
fi
else
echo "Sunshine server not available when container is run in 'secondary' mode"
print_step_header "Sunshine server not available when container is run in 'secondary' mode"
fi
echo "DONE"
echo -e "\e[34mDONE\e[0m"