aboutsummaryrefslogtreecommitdiffstats
path: root/daily-psk
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2018-10-09 13:32:45 +0200
committerGravatar Christian Hesse <mail@eworm.de>2018-10-09 14:15:34 +0200
commit7b4bef1a1e8e110b6fc30f7b2768e04b8b153693 (patch)
tree2c6402c251bbe375cf04d870cb36416ceca7f32f /daily-psk
parent9c3f3b9f202c711ec4b525456b7678518e50624e (diff)
make GeneratePSK a global function
Diffstat (limited to 'daily-psk')
-rw-r--r--daily-psk7
1 files changed, 4 insertions, 3 deletions
diff --git a/daily-psk b/daily-psk
index f8dd4dc..549b743 100644
--- a/daily-psk
+++ b/daily-psk
@@ -6,6 +6,8 @@
:global "daily-psk-match-comment";
+:global "GeneratePSK";
+
# check mail server
:if ([ / tool netwatch get [ find where comment=[ / tool e-mail get address ] ] status ] != "up" ) do={
:error "Mail server is not up.";
@@ -16,9 +18,8 @@
:error "Time is not yet synchronized from ntp.";
}
-:local GeneratePSK [ :parse [ / system script get GeneratePSK source ] ];
-
-:local newpsk [ $GeneratePSK ];
+:local date [ / system clock get date ];
+:local newpsk [ $GeneratePSK $date ];
:local sendmail 0;