From 0dbb1ed83f37aba5b091d2275d13c60e25e0d85b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Fernandes?= Date: Mon, 12 Dec 2022 23:47:51 +0000 Subject: [PATCH] . --- templates/lxc-portainer.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/templates/lxc-portainer.sh b/templates/lxc-portainer.sh index 5ea2a7e..6cda58f 100644 --- a/templates/lxc-portainer.sh +++ b/templates/lxc-portainer.sh @@ -1,14 +1,16 @@ #!/bin/bash #start container -lxc launch ubuntu $1 -p $2 +echo "$1" +echo "$2" +#lxc launch ubuntu $1 -p $2 #set docker requirements curl -s "https://git.limbosolutions.com/kb/lxc/raw/branch/main/scripts/lxc-config-docker-requirements.sh" | bash -s $1 -lxc restart $1 -lxc exec $1 -s "apt update -y && apt upgrade -y" +lxc restart $1 +lxc exec $1 -- bash -c "apt update -y && apt upgrade -y" #setup docker -lxc exec $1 bash -s "curl -s \"https://git.limbosolutions.com/kb/docker/raw/branch/main/scripts/ubuntu-fuse-setup.sh\" | bash" +lxc exec $1 -- bash -c "curl -s \"https://git.limbosolutions.com/kb/docker/raw/branch/main/scripts/ubuntu-fuse-setup.sh\" | bash" #portainer -lxc exec $1 bash -s "curl -s \"https://git.limbosolutions.com/kb/portainer/raw/branch/main/scripts/setup.sh\" | bash" \ No newline at end of file +lxc exec $1 -- bash -c "curl -s \"https://git.limbosolutions.com/kb/portainer/raw/branch/main/scripts/setup.sh\" | bash" \ No newline at end of file