Previously, these scripts wouldn't work on exotic systems such as NixOS.
```
fd '\.sh$' -t f --exec sed -i 's@#!/bin/bash@#!/usr/bin/env bash@'
```
18 files changed:
-#!/bin/bash
+#!/usr/bin/env bash
set -e
export RUST_BACKTRACE=1
-#!/bin/bash
+#!/usr/bin/env bash
set -e
export LEMMY_DATABASE_URL=postgres://lemmy:password@localhost:5432
-#!/bin/bash
+#!/usr/bin/env bash
docker-compose exec postgres pg_dumpall -c -U lemmy > dump_`date +%Y-%m-%d"_"%H_%M_%S`.sql
-#!/bin/bash
+#!/usr/bin/env bash
set -e
export COMPOSE_DOCKER_CLI_BUILD=1
-#!/bin/bash
+#!/usr/bin/env bash
psql -U lemmy -c "DROP SCHEMA public CASCADE; CREATE SCHEMA public; DROP SCHEMA utils CASCADE;"
-#!/bin/bash
+#!/usr/bin/env bash
set -e
times=3
-#!/bin/bash
+#!/usr/bin/env bash
set -e
# Default configurations
-#!/bin/bash
+#!/usr/bin/env bash
set -e
CWD="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
-#!/bin/bash
+#!/usr/bin/env bash
set -e
# Set the database variable to the default first.
-#!/bin/bash
+#!/usr/bin/env bash
set -e
declare -a arr=(
-#!/bin/bash
+#!/usr/bin/env bash
set -e
# By default, this script runs against `http://127.0.0.1:8536`, but you can pass a different Lemmy instance,
-#!/bin/bash
+#!/usr/bin/env bash
set -e
# You can import these to http://tatiyants.com/pev/#/plans/new
-#!/bin/bash
+#!/usr/bin/env bash
set -e
# You can import these to http://tatiyants.com/pev/#/plans/new
-#!/bin/bash
+#!/usr/bin/env bash
psql -U lemmy -c "DROP SCHEMA public CASCADE; CREATE SCHEMA public;"
cat docker/lemmy_dump_2021-01-29_16_13_40.sqldump | psql -U lemmy
-#!/bin/bash
+#!/usr/bin/env bash
set -e
PACKAGE="$1"
-#!/bin/bash
+#!/usr/bin/env bash
set -e
dest=${1-config/defaults.hjson}
-#!/bin/bash
+#!/usr/bin/env bash
set -e
pushd ../../lemmy-translations
-#!/bin/bash
+#!/usr/bin/env bash
pushd ../