extended info when no domain is given v3

... the easy way ... 
the better way is ... a parameter to get domain status... like
gluon-switch-domain status  --> uci get gluon.core.domain
...but... until then... this is helpful...

3rd version
This commit is contained in:
cptechnik 2023-02-19 15:13:41 +01:00 committed by GitHub
parent 843ec957d4
commit 4ec500f518
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ end
local setup_mode = unistd.access('/var/gluon/setup-mode') == 0
if #arg ~= 1 then
io.stderr:write('Usage: gluon-switch-domain [--no-reboot] <domain>\nUse: uci show gluon.core to view your actual domain\n')
io.stderr:write('Usage: gluon-switch-domain [--no-reboot] <domain>\nUse: "uci show gluon.core" to view your actual domain\n')
os.exit(1)
end
local domain = arg[1]