Skip to content

Commit

Permalink
default
Browse files Browse the repository at this point in the history
  • Loading branch information
as6325400 committed Oct 20, 2024
1 parent f298483 commit 22915f1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 126 deletions.
10 changes: 6 additions & 4 deletions .github/jobs/baseinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,12 @@ for service in nginx php${PHPVERSION}-fpm; do
done
section_end

if [ "${db}" = "install" ]; then
section_start "Install the example data"
/opt/domjudge/domserver/bin/dj_setup_database -uroot -proot install-examples | tee -a "$ARTIFACTS/mysql.txt"
section_end
if [ "${db}" != "none" ]; then
if [ "${db}" = "install" ]; then
section_start "Install the example data"
/opt/domjudge/domserver/bin/dj_setup_database -uroot -proot install-examples | tee -a "$ARTIFACTS/mysql.txt"
section_end
fi
fi

section_start "Setup user"
Expand Down
121 changes: 0 additions & 121 deletions .github/jobs/upgradeinstall.sh

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/database-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- name: Install DOMjudge
run: .github/jobs/upgradeinstall.sh
run: .github/jobs/baseinstall.sh default none

- name: Check for Errors in the Upgrade
run: |
Expand Down

0 comments on commit 22915f1

Please sign in to comment.