fedi/gitea/penpot: use ~vern email instead of signup one
This commit is contained in:
parent
bc7ff58eab
commit
8560e368b1
|
@ -1,8 +1,8 @@
|
|||
#!/usr/bin/env -S bash -e
|
||||
|
||||
[[ -z "$2" ]] && {
|
||||
printf "Usage: %s username email [user|admin]\n" "$0"
|
||||
[[ -z "$1" ]] && {
|
||||
printf "Usage: %s username [user|admin]\n" "$0"
|
||||
exit 1
|
||||
}
|
||||
|
||||
su - mastodon -s /bin/bash -c "live/bin/tootctl accounts create \"$1\" --email=\"$2\" --confirmed $([[ "$3" == "admin" ]] && printf '--role=admin'); live/bin/tootctl accounts modify \"$1\" --approve"
|
||||
su - mastodon -s /bin/bash -c "live/bin/tootctl accounts create \"$1\" --email=\"${1}@vern.cc\" --confirmed $([[ "$2" == "admin" ]] && printf '--role=admin'); live/bin/tootctl accounts modify \"$1\" --approve"
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/usr/bin/env -S bash -e
|
||||
|
||||
[[ -z "$3" ]] && {
|
||||
printf "Usage: %s username password email\n" "$0"
|
||||
[[ -z "$2" ]] && {
|
||||
printf "Usage: %s username password\n" "$0"
|
||||
exit 1
|
||||
}
|
||||
|
||||
su - git -s /bin/bash -c "gitea admin user create --username '${1//\'/\'\\\'\'}' --password '${2//\'/\'\\\'\'}' --email '${3//\'/\'\\\'\'}' -c /etc/gitea/app.ini"
|
||||
su - git -s /bin/bash -c "gitea admin user create --username '${1//\'/\'\\\'\'}' --password '${2//\'/\'\\\'\'}' --email '${1//\'/\'\\\'\'}@vern.cc' -c /etc/gitea/app.ini"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env -S bash -e
|
||||
|
||||
[[ -z "$3" ]] && {
|
||||
printf "Usage: %s email username password\n" "$0"
|
||||
[[ -z "$2" ]] && {
|
||||
printf "Usage: %s username password\n" "$0"
|
||||
exit 1
|
||||
}
|
||||
docker exec -ti penpot_penpot-backend_1 ./manage.sh create-profile -u "${1}" -p "${3}" -n "${2}"
|
||||
docker exec -ti penpot_penpot-backend_1 ./manage.sh create-profile -u "${1}@vern.cc" -p "${2}" -n "${1}"
|
||||
|
|
Loading…
Reference in New Issue