Skip to content

Commit

Permalink
setup init_admin_pass
Browse files Browse the repository at this point in the history
  • Loading branch information
as6325400 committed Oct 20, 2024
1 parent 79ce50e commit c028011
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/jobs/data/dj733.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
-- https://www.phpmyadmin.net/
--
-- 主機: db
-- 產生時間: 2024 年 10 月 1909:10
-- 產生時間: 2024 年 10 月 2020:09
-- 伺服器版本: 11.5.2-MariaDB-ubu2404
-- PHP 版本: 8.2.8

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


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

-- --------------------------------------------------------

Expand Down Expand Up @@ -427,7 +427,7 @@ CREATE TABLE `judgehost` (

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

-- --------------------------------------------------------

Expand Down Expand Up @@ -1050,8 +1050,8 @@ CREATE TABLE `user` (
--

INSERT INTO `user` (`userid`, `username`, `name`, `email`, `last_login`, `first_login`, `last_ip_address`, `password`, `ip_address`, `enabled`, `teamid`) VALUES
(1, 'admin', 'Administrator', NULL, 1729327821.886600000, 1729327821.886600000, '140.123.3.186', '$2y$10$UF3iH1tzxqrKOD/qKj0Y2e4Rx19sU1hYNFSPE2VeNhY4zom.T3y5i', NULL, 1, NULL),
(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),
(1, 'admin', 'Administrator', NULL, 1729454921.622700000, 1729327821.886600000, '140.123.3.186', '$2y$07$/D2Wg9n9LbEnlXzZyFLnNeRs3ZBSCEtVBIHqipKY7iDmqR6bFHJZy', NULL, 1, NULL),
(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),
(3, 'dummy', 'dummy user for example team', NULL, NULL, NULL, NULL, '$2y$07$22CRVQZvHRnQ3ZNSyIoTuekb0NBo3ABi3sRZ5/Vvq6QegCfm9guzq', NULL, 1, 2),
(4, 'as6325400', 'as6325400', NULL, 1729328970.102300000, 1729328483.385500000, '140.123.3.186', '$2y$07$bBQ.ilQYxIq6HNEi/PZ4tOS825RaroAxzlsBiz3TJAWU9/kiUnF1G', NULL, 1, 3),
(5, 'test', 'test', NULL, 1729328936.166300000, 1729328700.098800000, '140.123.3.186', '$2y$07$Gd0OSI1g3ufKZflpkUI1MuQiIDTSKYULRrBZQbkpwdc5QofqZP0Ye', NULL, 1, 4);
Expand Down Expand Up @@ -1398,7 +1398,7 @@ ALTER TABLE `userrole`
-- 使用資料表自動遞增(AUTO_INCREMENT) `auditlog`
--
ALTER TABLE `auditlog`
MODIFY `logid` int(4) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Audit log ID', AUTO_INCREMENT=26;
MODIFY `logid` int(4) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Audit log ID', AUTO_INCREMENT=27;

--
-- 使用資料表自動遞增(AUTO_INCREMENT) `balloon`
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/database-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
- uses: actions/checkout@v4
- name: Wait and Import Database
run: mysql -hsqlserver -u"root" -p"root" < .github/jobs/data/dj733.sql
- name: Setting init Admin Passwod
run: echo "pass" > ./etc/initial_admin_password.secret
- name: Install DOMjudge
run: .github/jobs/baseinstall.sh default upgrade
- name: Check for Errors in the Upgrade
Expand Down

0 comments on commit c028011

Please sign in to comment.