Constructive feedback is appreciated.

#!/bin/bash

FILE=docker-compose.yml

if [ -f "$FILE" ]; then
	rm $FILE
	wget https://raw.githubusercontent.com/LemmyNet/lemmy/main/docker/prod/docker-compose.yml
else
	echo "$FILE does not exist. Creating $FILE now..."
	wget https://raw.githubusercontent.com/LemmyNet/lemmy/main/docker/prod/docker-compose.yml
fi
  • nutomic@lemmy.ml
    cake
    M
    link
    fedilink
    arrow-up
    2
    ·
    4 years ago

    I would recommend that you use our ansible playbook instead. It does this and a lot more.