rorenv/docker/config/kopano/packages/addfirstuser.sh

19 lines
408 B
Bash
Raw Normal View History

2023-04-29 21:11:49 +09:00
#!/bin/bash
echo "addfirstuser.sh: Add first user"
if [ -f /root/packages/useradded ]; then
echo "addfirstuser.sh: The first user has already been added"
exit 0
fi
#
# Add first user.
#
kopano-admin -c $KOPANOADMUSER -p $KOPANOADMPASS -e $KOPANOADMUSER@$MYDOMAIN -f $KOPANOADMUSER -a yes
#
# Configuration complete.
#
touch /root/packages/useradded
echo "addfirstuser.sh: The first user has been added"