aboutsummaryrefslogtreecommitdiff
path: root/src/sshd
diff options
context:
space:
mode:
Diffstat (limited to 'src/sshd')
-rwxr-xr-xsrc/sshd/install.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/sshd/install.sh b/src/sshd/install.sh
index e02ef92..25b8859 100755
--- a/src/sshd/install.sh
+++ b/src/sshd/install.sh
@@ -39,10 +39,16 @@ elif [ "${USERNAME}" = "none" ] || ! id -u ${USERNAME} > /dev/null 2>&1; then
USERNAME=root
fi
+apt_get_update()
+{
+ echo "Running apt-get update..."
+ apt-get update -y
+}
+
# Checks if packages are installed and installs them if not
check_packages() {
if ! dpkg -s "$@" > /dev/null 2>&1; then
- apt-get update -y
+ apt_get_update
apt-get -y install --no-install-recommends "$@"
fi
}