fedi/gitea/penpot: use ~vern email instead of signup one

This commit is contained in:
root 2022-12-11 08:32:51 +00:00
parent bc7ff58eab
commit 8560e368b1
3 changed files with 9 additions and 9 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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}"