summarylogtreecommitdiffstats
path: root/domjudge-judgehost.install
diff options
context:
space:
mode:
authorShane Chen2019-05-11 19:12:39 +0800
committerShane Chen2019-05-11 19:12:39 +0800
commitcf889ae3f6d7dd3832006731254cc37df43be69e (patch)
treef17e4f8b13336b5a81b716d0afda352a91cf9d3e /domjudge-judgehost.install
parentd9562347413c90f776fab53c327be3759d408ab7 (diff)
downloadaur-cf889ae3f6d7dd3832006731254cc37df43be69e.tar.gz
add config files into backup and generate passwords in post_install
Diffstat (limited to 'domjudge-judgehost.install')
-rw-r--r--domjudge-judgehost.install3
1 files changed, 3 insertions, 0 deletions
diff --git a/domjudge-judgehost.install b/domjudge-judgehost.install
new file mode 100644
index 000000000000..63c3bdbd195b
--- /dev/null
+++ b/domjudge-judgehost.install
@@ -0,0 +1,3 @@
+post_install(){
+ /etc/judgehost/genrestapicredentials > /etc/judgehost/restapi.secret
+}