use /usr/bin/env -S bash -e for all scripts

This commit is contained in:
root 2022-12-12 16:11:51 +00:00
parent f425f1d72f
commit 4c3176b297
7 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env -S bash -e
setfacl -R -m u:"${1}":rx /etc/letsencrypt
setfacl -R -m g:"${1}":rx /etc/letsencrypt
setfacl -R -m u:"${1}":rx /etc/letsencrypt/live

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env -S bash -e
if [ $# -eq 0 ]; then
printf 'Usage: %s text\n' "$0"

View File

@ -1,4 +1,4 @@
#!/usr/bin/env -S bash
#!/usr/bin/env -S bash -e
[[ -z "$1" ]] && {
printf 'Usage: %s username\n' "$0"

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env -S bash -e
systemctl disable --now $1
rm -rf /etc/systemd/system/"${1}".service
userdel -r "${1}"

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env -S bash -e
client_id="$(curl -s https://pt.vern.cc/api/v1/oauth-clients/local | jq -r '.client_id')"
client_secret="$(curl -s https://pt.vern.cc/api/v1/oauth-clients/local | jq -r '.client_secret')"
curl -s -X POST \

View File

@ -1,4 +1,4 @@
#!/usr/bin/env -S bash
#!/usr/bin/env -S bash -e
[[ -z "$@" ]] && set -- $(tty)

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env -S bash -e
shopt -s extglob
CMD=$(printf "ssh -nNT "; for i in /vm/*; do user="${i##/vm/}"; printf -- "-L /var/socks/%s.sock:/home/%s/.webserver.sock " "$user" "$user"; done; printf 192.168.122.30)