mastodon - how to interpret .env.production for use with backup scripts
cc @nolan
TEMPFILE=`mktemp`
cat .env.production | grep = | sed "s/=\(.\+\)/='\1'/ > $TEMPFILE
source $TEMPFILE
@Gargron @vahnj The context is a script that automagically figures out your PG config: https://gist.github.com/nolanlawson/668abcf9f5e8ef4659e132a32525e50c
So the goal is that the instance admin doesn't have to modify their .env.production file. @vahnj this looks good to me! If you have a chance, forking my script and testing it out would be great. :)
mastodon - how to interpret .env.production for use with backup scripts
i guess this also assumes you don't use single quotes in any of your things so *shrugs*