Use default option for the "dpkg reconfigure" if it's requested during nfs/cifs client installation
#!/usr/bin/env bash
-
-# Copyright 2017-2019 EPAM Systems, Inc. (https://www.epam.com/)
+# Copyright 2017-2020 EPAM Systems, Inc. (https://www.epam.com/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -28,7 +27,7 @@ then
INSTALL_CMD="yum install nfs-utils cifs-utils -y -q"
else
CHECK_CMD="dpkg -l | grep nfs-common && dpkg -l | grep cifs-utils"
- INSTALL_CMD="apt-get install nfs-common cifs-utils -y -qq"
+ INSTALL_CMD='apt-get install -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" nfs-common cifs-utils -y -qq'
fi
eval "$CHECK_CMD"
