diff --git a/install/agentdvr-install.sh b/install/agentdvr-install.sh index ffd2fabe2..d09912a23 100644 --- a/install/agentdvr-install.sh +++ b/install/agentdvr-install.sh @@ -14,11 +14,12 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y apt-transport-https -$STD apt-get install -y alsa-utils -$STD apt-get install -y libxext-dev -$STD apt-get install -y fontconfig -$STD apt-get install -y libva-drm2 +$STD apt-get install -y \ + apt-transport-https \ + alsa-utils \ + libxext-dev \ + fontconfig \ + libva-drm2 msg_ok "Installed Dependencies" msg_info "Installing AgentDVR" @@ -27,7 +28,6 @@ RELEASE=$(curl -fsSL "https://www.ispyconnect.com/api/Agent/DownloadLocation4?pl cd /opt/agentdvr/agent curl -fsSL "$RELEASE" -o $(basename "$RELEASE") $STD unzip Agent_Linux64*.zip -rm -rf Agent_Linux64*.zip chmod +x ./Agent msg_ok "Installed AgentDVR" @@ -54,6 +54,7 @@ motd_ssh customize msg_info "Cleaning up" +rm -rf Agent_Linux64*.zip $STD apt-get -y autoremove $STD apt-get -y autoclean msg_ok "Cleaned"