Change mv action of client binaries to rsync -a

This commit is contained in:
Scott Dickson
2021-09-16 11:24:49 +10:00
parent 089d3819ce
commit ff1910a3ff
2 changed files with 6 additions and 6 deletions

View File

@@ -1,12 +1,12 @@
FROM ubuntu:18.04
LABEL version="Velociraptor v0.5.1"
LABEL version="Velociraptor v0.6.1"
LABEL description="Velociraptor server in a Docker container"
LABEL maintainer="Wes Lambert, @therealwlambert"
ENV VERSION="0.5.1"
ENV VERSION="0.6.1"
COPY ./entrypoint .
RUN chmod +x entrypoint && \
apt-get update && \
apt-get install -y curl wget jq && \
apt-get install -y curl wget jq rsync && \
# Create dirs for Velo binaries
mkdir -p /opt/velociraptor && \
for i in linux mac windows; do mkdir -p /opt/velociraptor/$i; done && \

View File

@@ -10,9 +10,9 @@ CLIENT_DIR="/velociraptor/clients"
# Move binaries into place
cp /opt/velociraptor/linux/velociraptor . && chmod +x velociraptor
mkdir -p $CLIENT_DIR/linux && cp /opt/velociraptor/linux/velociraptor /velociraptor/clients/linux/velociraptor_client
mkdir -p $CLIENT_DIR/mac && mv /opt/velociraptor/mac/velociraptor_client /velociraptor/clients/mac/velociraptor_client
mkdir -p $CLIENT_DIR/windows && mv /opt/velociraptor/windows/velociraptor_client* /velociraptor/clients/windows/
mkdir -p $CLIENT_DIR/linux && rsync -a /opt/velociraptor/linux/velociraptor /velociraptor/clients/linux/velociraptor_client
mkdir -p $CLIENT_DIR/mac && rsync -a /opt/velociraptor/mac/velociraptor_client /velociraptor/clients/mac/velociraptor_client
mkdir -p $CLIENT_DIR/windows && rsync -a /opt/velociraptor/windows/velociraptor_client* /velociraptor/clients/windows/
# If no existing server config, set it up
if [ ! -f server.config.yaml ]; then