Skip to content

Commit 904c622

Browse files
committed
Fixed need for tty
1 parent 617a413 commit 904c622

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

initdemo.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,15 +185,15 @@ then
185185
fi
186186

187187
# Set the initial admin Gitea user
188-
EXISTING=$(docker exec -it gitea su git bash -c "gitea admin user list")
188+
EXISTING=$(docker exec -i gitea su git bash -c "gitea admin user list")
189189
USER='octopus'
190190
if [[ "$EXISTING" == *"$USER"* ]]; then
191191
echo "User exists"
192192
else
193193
echo "We expect to see errors here and so will retry until Gitea is started."
194194
max_retry=6
195195
counter=0
196-
until docker exec -it gitea su git bash -c "gitea admin user create --admin --username octopus --password Password01! --email [email protected]"
196+
until docker exec -i gitea su git bash -c "gitea admin user create --admin --username octopus --password Password01! --email [email protected]"
197197
do
198198
sleep 10
199199
[[ counter -eq $max_retry ]] && echo "Failed!" && exit 1
@@ -203,7 +203,7 @@ else
203203
fi
204204

205205
# Create a regular Gitea users
206-
docker exec -it gitea su git bash -c "gitea admin user create --username editor --password Password01! --email [email protected] --must-change-password=false"
206+
docker exec -i gitea su git bash -c "gitea admin user create --username editor --password Password01! --email [email protected] --must-change-password=false"
207207

208208
# Create the orgs.
209209
if ! curl -u "octopus:Password01!" http://localhost:3000/api/v1/orgs/octopuscac/teams --fail --silent

0 commit comments

Comments
 (0)