Skip to content

Commit

Permalink
fix deb bug
Browse files Browse the repository at this point in the history
  • Loading branch information
peng9808 committed Jan 23, 2024
1 parent 4a3d11d commit a16730d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker-drbd9/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,9 @@ else
if [[ -n "$drbd_deb" && -n "$utils_deb" ]]; then
cp $drbd_deb /pkgs_root/drbd.deb
cp $utils_deb /pkgs_root/drbd_utils.deb
nsenter --target 1 --mount --uts --ipc --net --pid ls /root/
nsenter --target 1 --mount --uts --ipc --net --pid apt install /root/drbd.deb
nsenter --target 1 --mount --uts --ipc --net --pid apt install /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
exit_code=$?
if [ $exit_code -eq 0 ]; then
nsenter --target 1 --mount --uts --ipc --net --pid modprobe drbd
Expand Down
6 changes: 6 additions & 0 deletions docker-shipper/drbd-debs/install_deb.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash -x

install_cmd="apt install -y /root/drbd.deb"
Y | $install_cmd
apt install -y /root/drbd_utils.deb

0 comments on commit a16730d

Please sign in to comment.