Restart: only do restart if running via the wrapper script

This commit is contained in:
Aarni Koskela
2023-06-05 20:04:28 +03:00
parent 9781f31f74
commit 46a5bd64ed
5 changed files with 33 additions and 13 deletions

View File

@@ -204,6 +204,7 @@ prepare_tcmalloc() {
}
KEEP_GOING=1
export SD_WEBUI_RESTART=tmp/restart
while [[ "$KEEP_GOING" -eq "1" ]]; do
if [[ ! -z "${ACCELERATE}" ]] && [ ${ACCELERATE}="True" ] && [ -x "$(command -v accelerate)" ]; then
printf "\n%s\n" "${delimiter}"