From ee285bc44cd2c81afee144374cc4f70a4caa514c Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Thu, 18 Feb 2021 18:15:46 -0600 Subject: [PATCH] fix: clean up corrupted git folder on activate --- dynamix.unraid.net.plg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dynamix.unraid.net.plg b/dynamix.unraid.net.plg index 8f9bd21cb..71b5df6cf 100644 --- a/dynamix.unraid.net.plg +++ b/dynamix.unraid.net.plg @@ -1411,7 +1411,7 @@ if (!file_exists('/root/.ssh/known_hosts') || strpos(file_get_contents('/root/.s } // blow away existing repo if reinit command -if ($command == 'reinit' && file_exists('/boot/.git')) { +if ( ($command == 'activate' || $command == 'reinit') && file_exists('/boot/.git')) { exec_log('rm -rf /boot/.git'); }