forked from vern/scripts
9 lines
271 B
Bash
Executable File
9 lines
271 B
Bash
Executable File
#!/usr/bin/env -S bash -e
|
|
|
|
[[ -z "$3" ]] && {
|
|
printf "Usage: %s username password email\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"
|