|
@@ -45,8 +45,8 @@ case "$1" in
|
45
|
45
|
# stores the hostname so we will reuse it later, like in purge
|
46
|
46
|
db_set jitsi-meet/jvb-hostname $JVB_HOSTNAME
|
47
|
47
|
|
48
|
|
- NGINX_INSTALL_CHECK="$(dpkg-query -W -f '${PackageSpec}:${Status}\n' nginx 2>&1 | grep -v "ok installed" || :)"
|
49
|
|
- if [ -z "${NGINX_INSTALL_CHECK}" ]; then
|
|
48
|
+ NGINX_INSTALL_CHECK="$(dpkg-query -f '${Status}' -W 'nginx' 2>/dev/null | awk '{print $3}' || true)"
|
|
49
|
+ if [ "$NGINX_INSTALL_CHECK" = "installed" ] || [ "$NGINX_INSTALL_CHECK" = "unpacked" ] ; then
|
50
|
50
|
FORCE_NGINX="true"
|
51
|
51
|
fi
|
52
|
52
|
|