We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2ef254 commit be9a514Copy full SHA for be9a514
package/Dockerfile.suc
@@ -12,6 +12,8 @@ RUN /usr/bin/kubectl version --client
12
ARG ALPINE=alpine:3.18
13
FROM ${ALPINE}
14
15
+ENV CATTLE_AGENT_VAR_DIR="/var/lib/rancher/agent"
16
+
17
RUN mkdir /opt/rancher-system-agent-suc
18
COPY install.sh /opt/rancher-system-agent-suc/install.sh
19
COPY system-agent-uninstall.sh /opt/rancher-system-agent-suc/system-agent-uninstall.sh
package/suc/run.sh
@@ -2,7 +2,8 @@
2
3
set -x -e
4
5
-TMPDIRBASE=/var/lib/rancher/agent/tmp
+CATTLE_AGENT_VAR_DIR=${CATTLE_AGENT_VAR_DIR:-/var/lib/rancher/agent}
6
+TMPDIRBASE=${CATTLE_AGENT_VAR_DIR}/tmp
7
8
mkdir -p "/host${TMPDIRBASE}"
9
0 commit comments