mirror of
https://github.com/unraid/api.git
synced 2026-05-11 01:40:03 -05:00
fix: clean up corrupted git folder on activate
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user