From 4539b6b5627496eddaa6c60db738c8a190747166 Mon Sep 17 00:00:00 2001 From: peng9808 Date: Tue, 23 Jan 2024 17:45:31 +0800 Subject: [PATCH] fix deb bug --- docker-drbd9/entry.sh | 8 +++++--- docker-shipper/drbd-debs/install_deb.sh | 6 ------ 2 files changed, 5 insertions(+), 9 deletions(-) delete mode 100755 docker-shipper/drbd-debs/install_deb.sh diff --git a/docker-drbd9/entry.sh b/docker-drbd9/entry.sh index 9591482..0cf8a51 100644 --- a/docker-drbd9/entry.sh +++ b/docker-drbd9/entry.sh @@ -279,9 +279,11 @@ else if [[ -n "$drbd_deb" && -n "$utils_deb" ]]; then cp $drbd_deb /pkgs_root/drbd.deb cp $utils_deb /pkgs_root/drbd_utils.deb - cp $DEBDIR/install_deb.sh /pkgs_root/install_deb.sh - nsenter --target 1 --mount --uts --ipc --net --pid chmod +X /root/install_deb.sh - nsenter --target 1 --mount --uts --ipc --net --pid ./root/install_deb.sh + #cp $DEBDIR/install_deb.sh /pkgs_root/install_deb.sh + #nsenter --target 1 --mount --uts --ipc --net --pid chmod +X /root/install_deb.sh + #nsenter --target 1 --mount --uts --ipc --net --pid ./root/install_deb.sh + nsenter --target 1 --mount --uts --ipc --net --pid apt install -y /root/drbd_utils.deb + nsenter --target 1 --mount --uts --ipc --net --pid apt install -y /root/drbd.deb & exit_code=$? if [ $exit_code -eq 0 ]; then nsenter --target 1 --mount --uts --ipc --net --pid modprobe drbd diff --git a/docker-shipper/drbd-debs/install_deb.sh b/docker-shipper/drbd-debs/install_deb.sh deleted file mode 100755 index 5bc3f0b..0000000 --- a/docker-shipper/drbd-debs/install_deb.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -x - -install_cmd="apt install -y /root/drbd.deb" -Y | $install_cmd -apt install -y /root/drbd_utils.deb -