Skip to content

Commit c028011

Browse files
committed
setup init_admin_pass
1 parent 79ce50e commit c028011

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/jobs/data/dj733.sql

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
-- https://www.phpmyadmin.net/
44
--
55
-- 主機: db
6-
-- 產生時間: 2024 年 10 月 1909:10
6+
-- 產生時間: 2024 年 10 月 2020:09
77
-- 伺服器版本: 11.5.2-MariaDB-ubu2404
88
-- PHP 版本: 8.2.8
99

@@ -17,7 +17,6 @@ SET time_zone = "+00:00";
1717
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
1818
/*!40101 SET NAMES utf8mb4 */;
1919

20-
2120
--
2221
-- 資料庫: `domjudge`
2322
--
@@ -70,7 +69,8 @@ INSERT INTO `auditlog` (`logid`, `logtime`, `cid`, `user`, `datatype`, `dataid`,
7069
(22, 1729328924.426100000, NULL, 'as6325400', 'contest', '4', 'added', NULL),
7170
(23, 1729328962.324500000, 4, 'test', 'submission', '4', 'added', 'via teampage'),
7271
(24, 1729328966.943000000, NULL, 'judgehost-0', 'judging', '4', 'judged', 'timelimit'),
73-
(25, 1729328978.662500000, NULL, 'as6325400', 'contest', '4', 'deleted', NULL);
72+
(25, 1729328978.662500000, NULL, 'as6325400', 'contest', '4', 'deleted', NULL),
73+
(26, 1729454933.510800000, NULL, 'admin', 'user', '1', 'updated', NULL);
7474

7575
-- --------------------------------------------------------
7676

@@ -427,7 +427,7 @@ CREATE TABLE `judgehost` (
427427

428428
INSERT INTO `judgehost` (`hostname`, `active`, `polltime`, `restrictionid`) VALUES
429429
('example-judgehost1', 1, NULL, NULL),
430-
('judgehost-0', 1, 1729329052.663200000, NULL);
430+
('judgehost-0', 1, 1729454962.144500000, NULL);
431431

432432
-- --------------------------------------------------------
433433

@@ -1050,8 +1050,8 @@ CREATE TABLE `user` (
10501050
--
10511051

10521052
INSERT INTO `user` (`userid`, `username`, `name`, `email`, `last_login`, `first_login`, `last_ip_address`, `password`, `ip_address`, `enabled`, `teamid`) VALUES
1053-
(1, 'admin', 'Administrator', NULL, 1729327821.886600000, 1729327821.886600000, '140.123.3.186', '$2y$10$UF3iH1tzxqrKOD/qKj0Y2e4Rx19sU1hYNFSPE2VeNhY4zom.T3y5i', NULL, 1, NULL),
1054-
(2, 'judgehost', 'User for judgedaemons', NULL, 1729329062.731000000, 1729327919.432800000, '172.31.0.5', '$2y$07$MB/VTVF.J3zdhK3kUkXZ2el0ucLF7QC/jRz/3Z/8HUIesteK/KkGa', NULL, 1, NULL),
1053+
(1, 'admin', 'Administrator', NULL, 1729454921.622700000, 1729327821.886600000, '140.123.3.186', '$2y$07$/D2Wg9n9LbEnlXzZyFLnNeRs3ZBSCEtVBIHqipKY7iDmqR6bFHJZy', NULL, 1, NULL),
1054+
(2, 'judgehost', 'User for judgedaemons', NULL, 1729454967.169100000, 1729327919.432800000, '172.31.0.5', '$2y$07$MB/VTVF.J3zdhK3kUkXZ2el0ucLF7QC/jRz/3Z/8HUIesteK/KkGa', NULL, 1, NULL),
10551055
(3, 'dummy', 'dummy user for example team', NULL, NULL, NULL, NULL, '$2y$07$22CRVQZvHRnQ3ZNSyIoTuekb0NBo3ABi3sRZ5/Vvq6QegCfm9guzq', NULL, 1, 2),
10561056
(4, 'as6325400', 'as6325400', NULL, 1729328970.102300000, 1729328483.385500000, '140.123.3.186', '$2y$07$bBQ.ilQYxIq6HNEi/PZ4tOS825RaroAxzlsBiz3TJAWU9/kiUnF1G', NULL, 1, 3),
10571057
(5, 'test', 'test', NULL, 1729328936.166300000, 1729328700.098800000, '140.123.3.186', '$2y$07$Gd0OSI1g3ufKZflpkUI1MuQiIDTSKYULRrBZQbkpwdc5QofqZP0Ye', NULL, 1, 4);
@@ -1398,7 +1398,7 @@ ALTER TABLE `userrole`
13981398
-- 使用資料表自動遞增(AUTO_INCREMENT) `auditlog`
13991399
--
14001400
ALTER TABLE `auditlog`
1401-
MODIFY `logid` int(4) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Audit log ID', AUTO_INCREMENT=26;
1401+
MODIFY `logid` int(4) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Audit log ID', AUTO_INCREMENT=27;
14021402

14031403
--
14041404
-- 使用資料表自動遞增(AUTO_INCREMENT) `balloon`

.github/workflows/database-upgrade.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
- uses: actions/checkout@v4
3030
- name: Wait and Import Database
3131
run: mysql -hsqlserver -u"root" -p"root" < .github/jobs/data/dj733.sql
32+
- name: Setting init Admin Passwod
33+
run: echo "pass" > ./etc/initial_admin_password.secret
3234
- name: Install DOMjudge
3335
run: .github/jobs/baseinstall.sh default upgrade
3436
- name: Check for Errors in the Upgrade

0 commit comments

Comments
 (0)