summaryrefslogtreecommitdiff
path: root/fetch/fetch.1
blob: 9b97856591f993338b688e78b8d214daf1b7b3e8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
.Dd May 15, 2020
.Dt HSCRIPT-FETCH 1
.Os "Adélie Linux"
.Sh NAME
.Nm hscript-fetch
.Nd fetch a HorizonScript for further processing
.Sh SYNOPSIS
.Nm
.Ar FILE-OR-URL
.Sh DESCRIPTION
The
.Nm
utility retrieves the HorizonScript from the location specified by
.Ar FILE-OR-URL ,
and writes it to the path expected by the
.Xr hscript-executor 8
utility; presently,
.Pa /etc/horizon/installfile .
.Pp
The single argument,
.Ar FILE-OR-URL ,
should specify either an absolute path (one that begins with a /), or a URL.
.Ss Remote script retrieval
If a remote URL is specified, the
.Nm
utility will attempt to download the HorizonScript from it.  Supported URL
protocols include HTTP, HTTPS, and TFTP.
.Sh FILES
.Bl -ohang -width "/etc/horizon/installfile" -offset indent -compact
.It Pa /etc/horizon/installfile
.Nm
writes the HorizonScript specified to
.Pa /etc/horizon/installfile .
.Sh EXIT STATUS
.Ex -std
.Sh EXAMPLES
hscript-fetch /media/live/desktop.installfile
.Pp
hscript-fetch https://deploy.company.int/workstation16.installfile
.Sh DIAGNOSTICS
.Bl -diag
.It "%dateT%time log %location: %status: %message[: %extra]"
A message of type
.Cm %status
was logged while processing
.Cm %location .
The log message
.Cm %message
may be followed by additional information or hints in
.Cm %extra .
.El
.Sh SEE ALSO
.Xr hscript 5 .
.Sh HISTORY
The
.Nm
command first appeared in Horizon 0.1.
.Sh AUTHORS
.An A. Wilcox
.Aq awilfox@adelielinux.org
.Sh SECURITY CONSIDERATIONS
The
.Nm
utility supports unencrypted HTTP download.  Extreme caution should be
exercised when using unencrypted HTTP downloads, as your system's root
password could be manipulated by a malicious attacker.  Please use HTTPS
whenever possible.