fix: clean up corrupted git folder on activate

This commit is contained in:
Eric Schultz
2021-02-18 18:15:46 -06:00
committed by GitHub
parent 21feffd8a3
commit ee285bc44c
+1 -1
View File
@@ -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');
}