Skip to content

Commit

Permalink
Fix GitLab restart issue
Browse files Browse the repository at this point in the history
  • Loading branch information
TupleType committed Dec 12, 2022
1 parent 4fa21bd commit 741a2b8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions gitlab/run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash
if test -f "/setup/ready"; then
echo "GitLab is running"
/assets/wrapper > /dev/null 2>&1
fi
echo "GitLab is starting..."
set -m
/assets/wrapper > /dev/null 2>&1 &
Expand Down Expand Up @@ -34,7 +38,6 @@ token.save!;
puts 'alice token created';
"
cd /
echo -e '#!/bin/bash\n/assets/wrapper > /dev/null 2>&1' > /setup/run.sh
chmod +x /setup/run.sh
echo "GitLab is ready!" > /setup/ready
echo "GitLab is ready!"
fg # /assets/wrapper

0 comments on commit 741a2b8

Please sign in to comment.