make shebangs posix compliant (#2974)

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@'
```
This commit is contained in:
Charles Hall 2023-06-08 12:38:26 -07:00 committed by GitHub
parent f98476c5c0
commit 4e5798852f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 18 additions and 18 deletions

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e
export RUST_BACKTRACE=1 export RUST_BACKTRACE=1

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e
export LEMMY_DATABASE_URL=postgres://lemmy:password@localhost:5432 export LEMMY_DATABASE_URL=postgres://lemmy:password@localhost:5432

View file

@ -1,2 +1,2 @@
#!/bin/bash #!/usr/bin/env bash
docker-compose exec postgres pg_dumpall -c -U lemmy > dump_`date +%Y-%m-%d"_"%H_%M_%S`.sql docker-compose exec postgres pg_dumpall -c -U lemmy > dump_`date +%Y-%m-%d"_"%H_%M_%S`.sql

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e
export COMPOSE_DOCKER_CLI_BUILD=1 export COMPOSE_DOCKER_CLI_BUILD=1

View file

@ -1,3 +1,3 @@
#!/bin/bash #!/usr/bin/env bash
psql -U lemmy -c "DROP SCHEMA public CASCADE; CREATE SCHEMA public; DROP SCHEMA utils CASCADE;" psql -U lemmy -c "DROP SCHEMA public CASCADE; CREATE SCHEMA public; DROP SCHEMA utils CASCADE;"

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e
times=3 times=3

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e
# Default configurations # Default configurations

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e
CWD="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)" CWD="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e
# Set the database variable to the default first. # Set the database variable to the default first.

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e
declare -a arr=( declare -a arr=(

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e
# By default, this script runs against `http://127.0.0.1:8536`, but you can pass a different Lemmy instance, # By default, this script runs against `http://127.0.0.1:8536`, but you can pass a different Lemmy instance,

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e
# You can import these to http://tatiyants.com/pev/#/plans/new # You can import these to http://tatiyants.com/pev/#/plans/new

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e
# You can import these to http://tatiyants.com/pev/#/plans/new # You can import these to http://tatiyants.com/pev/#/plans/new

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
psql -U lemmy -c "DROP SCHEMA public CASCADE; CREATE SCHEMA public;" 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 cat docker/lemmy_dump_2021-01-29_16_13_40.sqldump | psql -U lemmy

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e
PACKAGE="$1" PACKAGE="$1"

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e
dest=${1-config/defaults.hjson} dest=${1-config/defaults.hjson}

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
set -e set -e
pushd ../../lemmy-translations pushd ../../lemmy-translations

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
pushd ../ pushd ../