Code: Select all
/container/stop [find tag=pihole/pihole:latest]
:log info "Stopped";
:delay 30s;
:log info "removing...";
/container/remove [find tag=pihole/pihole:latest]
:log info "adding...";
/container/add remote-image=pihole/pihole:latest dns=192.168.4.1 domain-name=elbonia envlist=pihole_envs hostname=pihole interface=veth1 mounts=etc_pihole,dnsmasq_Pi-hole root-dir=/usb1/docker/pihole-root start-on-boot=yes
:log info "added";
:delay 90s;
:log info "starting";
/container/start [find tag=pihole/pihole:latest]

But if I copy that exact /container/add line into the terminal, the container adds just fine. What's going on here? I have given the script read and write permissions. Does it need something else?
Thanks