修改部署文档
This commit is contained in:
parent
6eddb1e78f
commit
b65b6a60ab
@ -58,10 +58,34 @@ for dir in bin lib python tools config; do
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
cp -r "${PROJECT_ROOT}/bin/"* "/usr/local/bin/"
|
|
||||||
cp -r "${PROJECT_ROOT}/lib/"* "/usr/lib64/"
|
# Copy executable
|
||||||
cp -r "${PROJECT_ROOT}/python/"* "/tmp/"
|
log_info "Copying executable..."
|
||||||
cp -r "${PROJECT_ROOT}/tools/"* "$WORK_DIR/tools/"
|
if ! cp -v "${PROJECT_ROOT}/bin/"* "/usr/local/bin/"; then
|
||||||
|
log_error "Failed to copy executable"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Copy libraries
|
||||||
|
log_info "Copying libraries..."
|
||||||
|
if ! cp -v "${PROJECT_ROOT}/lib/"* "/usr/lib64/"; then
|
||||||
|
log_error "Failed to copy libraries"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Copy Python packages
|
||||||
|
log_info "Copying Python packages..."
|
||||||
|
if ! cp -v "${PROJECT_ROOT}/python/"* "/tmp/"; then
|
||||||
|
log_error "Failed to copy Python packages"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Copy tools
|
||||||
|
log_info "Copying tools..."
|
||||||
|
if ! cp -v "${PROJECT_ROOT}/tools/"* "$WORK_DIR/tools/"; then
|
||||||
|
log_error "Failed to copy tools"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Create config directory
|
# Create config directory
|
||||||
CONFIG_DIR="/etc/collision_avoidance"
|
CONFIG_DIR="/etc/collision_avoidance"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user