From 9de7a07af7d6e29e17bfac3b9fae17507fc6b949 Mon Sep 17 00:00:00 2001 From: evazion Date: Sat, 19 Dec 2020 22:46:40 -0600 Subject: [PATCH] /status: fix blank distro version field. The `source` command is a bash-ism and doesn't work in a strictly POSIX shell like dash, which is the /bin/sh on Debian/Ubuntu. Use `.` instead. https://en.wikipedia.org/wiki/Dot_(command) --- app/logical/server_status.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/logical/server_status.rb b/app/logical/server_status.rb index 197582bf7..e3a903230 100644 --- a/app/logical/server_status.rb +++ b/app/logical/server_status.rb @@ -46,7 +46,7 @@ class ServerStatus end def distro_version - `source /etc/os-release; echo "$NAME $VERSION"`.chomp + `. /etc/os-release; echo "$NAME $VERSION"`.chomp end def libvips_version