From d57d10250921f349b0df936c5fd8cc374b4b12d5 Mon Sep 17 00:00:00 2001 From: James Swineson Date: Sat, 24 Aug 2019 14:38:20 +0800 Subject: [PATCH] update debian 9 to 10 to workaround an apt bug terminate called after throwing an instance of 'std::runtime_error' what(): random_device::random_device(const std::string&) --- menhera.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/menhera.sh b/menhera.sh index 4e46a32..a235d31 100755 --- a/menhera.sh +++ b/menhera.sh @@ -15,6 +15,7 @@ export PATH="$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" # environment compatibility __compat_restart_ssh() { if [ -x "$(command -v systemctl)" ]; then + systemctl daemon-reload systemctl restart ssh elif [ -x "$(command -v service)" ]; then service ssh restart @@ -111,7 +112,7 @@ install_software() { echo -e 'Dir::Cache "";\nDir::Cache::archives "";' > "${NEWROOT}/etc/apt/apt.conf.d/00_disable-cache-directories" DEBIAN_FRONTEND=noninteractive chroot "${NEWROOT}" apt-get update -y - DEBIAN_FRONTEND=noninteractive chroot "${NEWROOT}" apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install -y ssh + DEBIAN_FRONTEND=noninteractive chroot "${NEWROOT}" apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install -y openssh-server } copy_config() {