@ossy/deployment-tools 0.0.16 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +8 -8
- package/package.json +1 -1
- package/src/caddy.service.js +8 -8
package/dist/index.js
CHANGED
|
@@ -28921,30 +28921,30 @@ class CaddyService {
|
|
|
28921
28921
|
;(0,external_fs_.writeFileSync)('/etc/systemd/system/caddy-route53.service', caddy_service_systemdServiceFile)
|
|
28922
28922
|
|
|
28923
28923
|
[
|
|
28924
|
-
'
|
|
28924
|
+
'apt install -y debian-keyring debian-archive-keyring apt-transport-https',
|
|
28925
28925
|
'curl -1sLf \'https://dl.cloudsmith.io/public/caddy/stable/gpg.key\' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg',
|
|
28926
28926
|
'curl -1sLf \'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt\' | sudo tee /etc/apt/sources.list.d/caddy-stable.list',
|
|
28927
28927
|
'curl -1sLf \'https://dl.cloudsmith.io/public/caddy/xcaddy/gpg.key\' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-xcaddy-archive-keyring.gpg',
|
|
28928
28928
|
'curl -1sLf \'https://dl.cloudsmith.io/public/caddy/xcaddy/debian.deb.txt\' | sudo tee /etc/apt/sources.list.d/caddy-xcaddy.list',
|
|
28929
|
-
'
|
|
28930
|
-
'
|
|
28931
|
-
'
|
|
28929
|
+
'add-apt-repository ppa:longsleep/golang-backports -y',
|
|
28930
|
+
'apt update',
|
|
28931
|
+
'apt install caddy xcaddy golang-go -y',
|
|
28932
28932
|
|
|
28933
28933
|
// xcaddy custom build with route53 integration
|
|
28934
|
-
'
|
|
28934
|
+
'xcaddy build --with github.com/caddy-dns/route53',
|
|
28935
28935
|
// 'sudo dpkg-divert --divert /usr/bin/caddy.default --rename /usr/bin/caddy',
|
|
28936
|
-
'
|
|
28936
|
+
'mv ./caddy /usr/bin/caddy.route53'
|
|
28937
28937
|
// 'update-alternatives --install /usr/bin/caddy caddy /usr/bin/caddy.default 10',
|
|
28938
28938
|
// 'update-alternatives --install /usr/bin/caddy caddy /usr/bin/caddy.custom 50',
|
|
28939
28939
|
].forEach(command => (0,external_child_process_namespaceObject.exec)(command))
|
|
28940
28940
|
}
|
|
28941
28941
|
|
|
28942
28942
|
static enable() {
|
|
28943
|
-
(0,external_child_process_namespaceObject.exec)('
|
|
28943
|
+
(0,external_child_process_namespaceObject.exec)('systemctl enable caddy-route53.service')
|
|
28944
28944
|
}
|
|
28945
28945
|
|
|
28946
28946
|
static start() {
|
|
28947
|
-
(0,external_child_process_namespaceObject.exec)('
|
|
28947
|
+
(0,external_child_process_namespaceObject.exec)('systemctl start caddy-route53.service')
|
|
28948
28948
|
}
|
|
28949
28949
|
|
|
28950
28950
|
}
|
package/package.json
CHANGED
package/src/caddy.service.js
CHANGED
|
@@ -39,30 +39,30 @@ export class CaddyService {
|
|
|
39
39
|
writeFileSync('/etc/systemd/system/caddy-route53.service', systemdServiceFile)
|
|
40
40
|
|
|
41
41
|
[
|
|
42
|
-
'
|
|
42
|
+
'apt install -y debian-keyring debian-archive-keyring apt-transport-https',
|
|
43
43
|
'curl -1sLf \'https://dl.cloudsmith.io/public/caddy/stable/gpg.key\' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg',
|
|
44
44
|
'curl -1sLf \'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt\' | sudo tee /etc/apt/sources.list.d/caddy-stable.list',
|
|
45
45
|
'curl -1sLf \'https://dl.cloudsmith.io/public/caddy/xcaddy/gpg.key\' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-xcaddy-archive-keyring.gpg',
|
|
46
46
|
'curl -1sLf \'https://dl.cloudsmith.io/public/caddy/xcaddy/debian.deb.txt\' | sudo tee /etc/apt/sources.list.d/caddy-xcaddy.list',
|
|
47
|
-
'
|
|
48
|
-
'
|
|
49
|
-
'
|
|
47
|
+
'add-apt-repository ppa:longsleep/golang-backports -y',
|
|
48
|
+
'apt update',
|
|
49
|
+
'apt install caddy xcaddy golang-go -y',
|
|
50
50
|
|
|
51
51
|
// xcaddy custom build with route53 integration
|
|
52
|
-
'
|
|
52
|
+
'xcaddy build --with github.com/caddy-dns/route53',
|
|
53
53
|
// 'sudo dpkg-divert --divert /usr/bin/caddy.default --rename /usr/bin/caddy',
|
|
54
|
-
'
|
|
54
|
+
'mv ./caddy /usr/bin/caddy.route53'
|
|
55
55
|
// 'update-alternatives --install /usr/bin/caddy caddy /usr/bin/caddy.default 10',
|
|
56
56
|
// 'update-alternatives --install /usr/bin/caddy caddy /usr/bin/caddy.custom 50',
|
|
57
57
|
].forEach(command => exec(command))
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
static enable() {
|
|
61
|
-
exec('
|
|
61
|
+
exec('systemctl enable caddy-route53.service')
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
static start() {
|
|
65
|
-
exec('
|
|
65
|
+
exec('systemctl start caddy-route53.service')
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
}
|