From 8a79d0249f7e2654706a9d542a283d41cf452235 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 30 Jun 2020 23:10:49 +0200 Subject: [PATCH] gluon-scheduled-domain-switch: move gluon-switch-domain to /lib/gluon/scheduled-domain-switch This script is an implementation detail - let's not clutter the global $PATH namespace with a script with such a generic name. --- .../gluon/scheduled-domain-switch/switch-domain} | 0 .../luasrc/lib/gluon/upgrade/950-gluon-scheduled-domain-switch | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename package/gluon-scheduled-domain-switch/luasrc/{usr/bin/gluon-switch-domain => lib/gluon/scheduled-domain-switch/switch-domain} (100%) diff --git a/package/gluon-scheduled-domain-switch/luasrc/usr/bin/gluon-switch-domain b/package/gluon-scheduled-domain-switch/luasrc/lib/gluon/scheduled-domain-switch/switch-domain similarity index 100% rename from package/gluon-scheduled-domain-switch/luasrc/usr/bin/gluon-switch-domain rename to package/gluon-scheduled-domain-switch/luasrc/lib/gluon/scheduled-domain-switch/switch-domain diff --git a/package/gluon-scheduled-domain-switch/luasrc/lib/gluon/upgrade/950-gluon-scheduled-domain-switch b/package/gluon-scheduled-domain-switch/luasrc/lib/gluon/upgrade/950-gluon-scheduled-domain-switch index c221eeda..77803eee 100755 --- a/package/gluon-scheduled-domain-switch/luasrc/lib/gluon/upgrade/950-gluon-scheduled-domain-switch +++ b/package/gluon-scheduled-domain-switch/luasrc/lib/gluon/upgrade/950-gluon-scheduled-domain-switch @@ -14,5 +14,5 @@ end -- Only in case domain switch is scheduled local f = io.open(cronfile, "w") f:write("* * * * * /usr/bin/gluon-check-connection\n") -f:write("*/5 * * * * /usr/bin/gluon-switch-domain\n") +f:write("*/5 * * * * /lib/gluon/scheduled-domain-switch/switch-domain\n") f:close()