Skip to content

Commit 62c77a1

Browse files
Move DOMjudge outside of homedir to not let gnome automount mounts
1 parent b1c247a commit 62c77a1

File tree

7 files changed

+25
-4
lines changed

7 files changed

+25
-4
lines changed

icpc-wf/ansible/common_tasks_prebuild.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@
3434
regexp: '^%sudo'
3535
line: '%sudo ALL=(ALL) NOPASSWD: ALL'
3636

37+
- name: create working copy directory
38+
file:
39+
path: "{{DJ_DIR}}"
40+
state: directory
41+
owner: domjudge
42+
group: domjudge
43+
3744
- name: create working copy from the repo
3845
become: yes
3946
become_user: domjudge

icpc-wf/ansible/domserver-only-code.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@
2626
- name: include global variables
2727
include_vars: variables.yml
2828

29+
- name: create working copy directory
30+
file:
31+
path: "{{DJ_DIR}}"
32+
state: directory
33+
owner: domjudge
34+
group: domjudge
35+
2936
- name: create working copy from the repo
3037
become: yes
3138
become_user: domjudge
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[Desktop Entry]
22
Name=domjudgelogo
33
Type=Application
4-
Exec=bash -c "sleep 10 && tail -f /home/domjudge/domjudge/output/log/*-0.log | /home/domjudge/domlogo"
4+
Exec=bash -c "sleep 10 && tail -f /opt/domjudge/output/log/*-0.log | /home/domjudge/domlogo"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[Desktop Entry]
22
Name=taillog-domserver-symfony-error
33
Type=Application
4-
Exec=gnome-terminal --window --geometry 74x17+1000+400 -e 'bash -c "tail -F /home/domjudge/domjudge/webapp/var/logs/prod.log"'
4+
Exec=gnome-terminal --window --geometry 74x17+1000+400 -e 'bash -c "tail -F /opt/domjudge/webapp/var/logs/prod.log"'

icpc-wf/ansible/files/taillog.desktop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[Desktop Entry]
22
Name=taillog
33
Type=Application
4-
Exec=gnome-terminal --window --full-screen -e 'bash -c "tail -f /home/domjudge/domjudge/output/log/*-0.log"'
4+
Exec=gnome-terminal --window --full-screen -e 'bash -c "tail -f /opt/domjudge/output/log/*-0.log"'

icpc-wf/ansible/judgehost-only-code.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@
2626
- name: include global variables
2727
include_vars: variables.yml
2828

29+
- name: create working copy directory
30+
file:
31+
path: "{{DJ_DIR}}"
32+
state: directory
33+
owner: domjudge
34+
group: domjudge
35+
2936
- name: create working copy from the repo
3037
become: yes
3138
become_user: domjudge

icpc-wf/ansible/variables.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Directory of the domjudge repository checkout.
2-
DJ_DIR: /home/domjudge/domjudge
2+
DJ_DIR: /opt/domjudge
33

44
# Branch to checkout and use.
55
DJ_BRANCH: master

0 commit comments

Comments
 (0)