mirror of
https://github.com/unraid/webgui.git
synced 2026-01-14 05:30:07 -06:00
Docker: test only images not folders
This commit is contained in:
@@ -27,10 +27,10 @@ $DockerStopped = pgrep('dockerd')===false;
|
||||
$realfile = $dockercfg['DOCKER_IMAGE_FILE'];
|
||||
if (file_exists($realfile)) {
|
||||
$realfile = transpose_user_path($realfile);
|
||||
if (exec("stat -c %T -f " . escapeshellarg($realfile)) == "btrfs") {
|
||||
if (shell_exec("lsattr " . escapeshellarg($realfile) . " | grep \"\\-C\"") == "") {
|
||||
echo '<p class="notice">'._('Your existing Docker image file needs to be recreated due to an issue from an earlier beta of Unraid 6').' ';
|
||||
echo _('Failure to do so may result in your docker image suffering corruption at a later time').' ';
|
||||
if (is_file($realfile) && exec("stat -c %T -f ".escapeshellarg($realfile))=="btrfs") {
|
||||
if (shell_exec("lsattr ".escapeshellarg($realfile)."|grep \"\\-C\"") == "") {
|
||||
echo '<p class="notice">'._('Your existing Docker image file needs to be recreated due to an issue from an earlier beta of Unraid 6').'. ';
|
||||
echo _('Failure to do so may result in your docker image suffering corruption at a later time').'. ';
|
||||
echo _('Please do this NOW').'!</p>';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user