You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 10, 2024. It is now read-only.
Install a precompiled module from the latest Github release. (#198)
Checks Nginx version, architecture, and operating system.
Downloads the file into a temp directory, then moves it to nginx's
modules directory and creates a symbolic link.
---------
Co-authored-by: Jed Liu <liujed@users.noreply.github.com>
returnfmt.Errorf("This command is not yet implemented.")
99
+
err:=nginx.InstallModule(&nginx.InstallArgs{
100
+
DryRun: dryRunFlag,
101
+
})
102
+
iferr!=nil {
103
+
varinstallError*nginx.InstallationError
104
+
switch {
105
+
caseerrors.As(err, &installError):
106
+
// Log the error, then what the user should do next
107
+
printer.Errorf("%v\n", err)
108
+
printer.Infof("%v\n", installError.Remedy)
109
+
default:
110
+
printer.Errorf("Could not determine which NGINX platform and version to support: %v\n", err)
111
+
printer.Infof("Please contact support@akitasoftware.com for assistance, or follow the instructions at https://github.com/akitasoftware/akita-nginx-module to install the module by hand.\n")
112
+
}
113
+
114
+
// Report the error here because we don't report it to the root command
0 commit comments