Update linupx-scripts.sh
This commit is contained in:
@@ -725,6 +725,16 @@ INSTALL_WATCHTOWER() {
|
||||
fi
|
||||
echo
|
||||
}
|
||||
PORTAINER_AGENT_INSTALL(){
|
||||
echo -e "${idsCL[LightCyan]}Installing Portainer Agent Docker... ${idsCL[Default]}"
|
||||
docker run -d -p 9001:9001 --name portainer_agent --restart=always \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker/volumes:/var/lib/docker/volumes -v /:/host \
|
||||
portainer/agent:latest >/dev/null 2>&1
|
||||
|
||||
echo -e "\n${idsCL[Green]}Portainer Agent has been installed${idsCL[Default]}\n"
|
||||
until [ "$(docker inspect -f {{.State.Health.Status}} portainer_agent)"=="healthy" ]; do sleep 0.1; done; sleep 1s
|
||||
docker logs portainer_agent
|
||||
}
|
||||
TAILSCALE_INSTALL() {
|
||||
echo
|
||||
echo "This script currently only works with Ubuntu"
|
||||
@@ -1244,6 +1254,7 @@ if [ ${action-x} ]; then
|
||||
addveeamuser) ADDVEEAMUSER;;
|
||||
netdataremove) NETDATA_UNINSTALL;;
|
||||
watchtower) INSTALL_WATCHTOWER ${2};;
|
||||
portaineragent) PORTAINER_AGENT_INSTALL;;
|
||||
docker-cleanup) DOCKER_CLEANUP;;
|
||||
syncthing-update) SYNCTHING_APT_UPDATE;;
|
||||
mailclear) POSTFIX_CLEARQUEUE;;
|
||||
|
||||
Reference in New Issue
Block a user