forked from vern/scripts
use /usr/bin/env -S bash -e for all scripts
This commit is contained in:
parent
f425f1d72f
commit
4c3176b297
|
@ -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 u:"${1}":rx /etc/letsencrypt
|
||||||
setfacl -R -m g:"${1}":rx /etc/letsencrypt
|
setfacl -R -m g:"${1}":rx /etc/letsencrypt
|
||||||
setfacl -R -m u:"${1}":rx /etc/letsencrypt/live
|
setfacl -R -m u:"${1}":rx /etc/letsencrypt/live
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env -S bash -e
|
||||||
|
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
printf 'Usage: %s text\n' "$0"
|
printf 'Usage: %s text\n' "$0"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env -S bash
|
#!/usr/bin/env -S bash -e
|
||||||
|
|
||||||
[[ -z "$1" ]] && {
|
[[ -z "$1" ]] && {
|
||||||
printf 'Usage: %s username\n' "$0"
|
printf 'Usage: %s username\n' "$0"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env -S bash -e
|
||||||
systemctl disable --now $1
|
systemctl disable --now $1
|
||||||
rm -rf /etc/systemd/system/"${1}".service
|
rm -rf /etc/systemd/system/"${1}".service
|
||||||
userdel -r "${1}"
|
userdel -r "${1}"
|
||||||
|
|
|
@ -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_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')"
|
client_secret="$(curl -s https://pt.vern.cc/api/v1/oauth-clients/local | jq -r '.client_secret')"
|
||||||
curl -s -X POST \
|
curl -s -X POST \
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env -S bash
|
#!/usr/bin/env -S bash -e
|
||||||
|
|
||||||
[[ -z "$@" ]] && set -- $(tty)
|
[[ -z "$@" ]] && set -- $(tty)
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env -S bash -e
|
||||||
shopt -s extglob
|
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)
|
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)
|
||||||
|
|
Loading…
Reference in New Issue