A free, open, self-hosted app platform (GNU AGPLv3): one-click app deploys, Traefik reverse proxy with automatic SSL, rootless Docker support, gluetun VPN routing, and a web dashboard to manage it all. Free & open forever to self-host; optional paid hosted services fund it. See PROMISE.md. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> Signed-off-by: librelad <librelad@digitalangels.vip>
32 lines
927 B
Bash
Executable File
32 lines
927 B
Bash
Executable File
#!/bin/bash
|
|
|
|
dockerComposeRestartAfterUpdate()
|
|
{
|
|
local app_name="$1"
|
|
local flags="$2"
|
|
|
|
if [[ $flags == "install" ]] ; then
|
|
dockerComposeRestart $app_name;
|
|
did_not_restart=false
|
|
elif [[ $flags == "" ]] || [[ $flags == "restart" ]]; then
|
|
while true; do
|
|
echo ""
|
|
isNotice "Changes have been made to the $app_name configuration."
|
|
echo ""
|
|
isQuestion "Would you like to restart $app_name? (y/n): "
|
|
echo ""
|
|
read -p "" restart_choice
|
|
if [[ -n "$restart_choice" ]]; then
|
|
break
|
|
fi
|
|
isNotice "Please provide a valid input."
|
|
done
|
|
if [[ "$restart_choice" == [yY] ]]; then
|
|
dockerComposeRestart $app_name;
|
|
did_not_restart=false
|
|
fi
|
|
if [[ "$restart_choice" == [nN] ]]; then
|
|
did_not_restart=true
|
|
fi
|
|
fi
|
|
} |