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.
### What
- Handle the case when linux setup command is run again on a system on
which it was previously used.
- There can be three possibilities
- systemd service exists and is enabled: Ask user if old values should
be over-written with current input
- systemd service exists and is disabled: Ask user if old values should
be over-written with current input and enable the service
- systemd service doesn't exist: Proceed with normal flow
Ticket: https://postmanlabs.atlassian.net/browse/OBS-407
---------
Co-authored-by: Mark Gritter <mgritter@akitasoftware.com>
returnerrors.Wrapf(err, "Received non 1 exitcode for systemctl is-enabled. \n Command output:%s \n Please send this log message to observability-support@postman.com for assistance\n", out)
returnerrors.Wrapf(err, "failed to run systemctl is-enabled posman-lc-agent")
117
+
}
118
+
ifstrings.Contains(string(out), enabled) {
119
+
returnaskToReconfigure()
120
+
}
121
+
returnerrors.Errorf("The systemctl is-enabled command produced output this tool doesn't recognize: %q. \n Please send this log message to observability-support@postman.com for assistance\n", string(out))
122
+
123
+
}
124
+
66
125
funccheckUserPermissions() error {
67
-
// TODO: Make this work without root
68
126
69
127
// Exact permissions required are
70
128
// read/write permissions on /etc/default/postman-lc-agent
0 commit comments