check if swarm
@@ -35,6 +35,14 @@ function tmpdir()
echo "$out"
}
+function isSwarmNode(){
+ if [ "$(docker info | grep Swarm | sed 's/Swarm: //g')" == "inactive" ]; then
+ echo false;
+ else
+ echo true;
+ fi
+}
+
function check_args()
{
for req_cmd in curl docker docker-compose jq wget git ; do
@@ -117,6 +125,9 @@ function check_args()
sudo chmod 777 "$POSEIDON_PREFIX"/opt/redis "$POSEIDON_PREFIX"/opt/poseidon_files
sudo touch "$POSEIDON_PREFIX"/opt/poseidon/.poseidon_history
sudo chmod 777 "$POSEIDON_PREFIX"/opt/poseidon/.poseidon_history
+ if !isSwarmNode; then
+ find /opt/poseidon -name "docker-compose*" | xargs sed -i '/driver: overlay$/d'
+ fi
composefiles=(-f docker-compose.yaml -f helpers/faucet/docker-compose.yaml)
installtype="--complete"
if [ "$2" != "" ] ; then
