Use "command -v" to test for convert instead of "which -s"
This commit is contained in:
parent
61a72c6835
commit
8009b3f036
|
@ -107,7 +107,7 @@ class AdminDashboardData
|
|||
end
|
||||
|
||||
def image_magick_check
|
||||
I18n.t('dashboard.image_magick_warning') if SiteSetting.create_thumbnails and !system("which -s convert")
|
||||
I18n.t('dashboard.image_magick_warning') if SiteSetting.create_thumbnails and !system("command -v convert >/dev/null;")
|
||||
end
|
||||
|
||||
def failing_emails_check
|
||||
|
|
Loading…
Reference in New Issue