Fix wsssh-tools hook to copy from build directory

parent 1a4f8879
......@@ -5,15 +5,22 @@ set -e
echo "Installing wsssh-tools .deb package..."
# wsssh-tools .deb package is available in /var/cache from config/includes.chroot/var/cache/
WSSSH_DEB="/var/cache/wsssh-tools_1.0.0-1_amd64.deb"
echo "Checking wsssh-tools at $WSSSH_DEB..."
if [ ! -f "$WSSSH_DEB" ]; then
echo "Error: wsssh-tools .deb package not found at $WSSSH_DEB"
# Copy wsssh-tools .deb package from the build directory
BUILD_DEB="../../../wsssh-tools_1.0.0-1_amd64.deb"
TARGET_DEB="/tmp/wsssh-tools_1.0.0-1_amd64.deb"
echo "Copying wsssh-tools from build directory..."
if [ -f "$BUILD_DEB" ]; then
cp "$BUILD_DEB" "$TARGET_DEB"
echo "Successfully copied wsssh-tools to $TARGET_DEB"
else
echo "Error: wsssh-tools .deb package not found at $BUILD_DEB"
echo "Current directory: $(pwd)"
exit 1
fi
WSSSH_DEB="$TARGET_DEB"
# Install dependencies first
echo "Installing dependencies for wsssh-tools..."
apt-get update
......@@ -23,6 +30,7 @@ apt-get install -y libc6 libssl3t64 openssl
echo "Installing wsssh-tools .deb package..."
dpkg -i "$WSSSH_DEB"
# Clean up (don't remove since it's from includes.chroot)
# Clean up
rm -f "$TARGET_DEB"
echo "wsssh-tools installation completed successfully"
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment