rebased-podman/50-create-user.sh

15 lines
276 B
Bash
Raw Normal View History

2022-11-14 15:25:40 +01:00
#!/bin/bash
admin=""
echo "Username:"
read -r user
echo "Email:"
read -r email
echo "Make Admin? (y/N)"
read -r makeadmin
if [[ $makeadmin == "y" ]]; then
admin="--admin"
fi
podman exec -it rebased-web /opt/pleroma/bin/pleroma_ctl user new $user $email $admin
echo Done.