Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPM name changed #25

Merged
merged 2 commits into from
Aug 29, 2024
Merged

RPM name changed #25

merged 2 commits into from
Aug 29, 2024

Conversation

vicagarcia
Copy link
Contributor

@vicagarcia vicagarcia commented Aug 29, 2024

from cyral-sidecar to sidecar, so the script looked for Cyral-sidecar before uninstalling and installing and it failed. I update the install script to find it using sidecar and uninstall correctly.

Tested this by doing an rpm install with the previous script twice:

sudo .. bash -c "./install-linux.sh"
Doing a Red Hat Install
Downloading the binaries
Installing sidecar...
...

sudo ... bash -c "./install-linux.sh"
Doing a Red Hat Install
Downloading the binaries
...
Installing sidecar...
...

After modifying the script:

sudo ... bash -c "./install-linux.sh"
Doing a Red Hat Install
Downloading the binaries
...
Installing sidecar...
...

sudo ... bash -c "./install-linux.sh"
Doing a Red Hat Install
Downloading the binaries
...
Removing existing installation...
Installing sidecar...
...

Testing in ubuntu works as well:

sudo ... bash -c "./install-linux.sh"
Doing an Ubuntu Install
Downloading the binaries
...
Removing existing installation...
Installing sidecar...
...

echo "Removing existing installation..."
dpkg -r cyral-sidecar > /dev/null 2>&1
dpkg -r cyral-sidecar sidecar > /dev/null 2>&1

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if one of these packages are not present in the system, wont this command fail?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with the -r option it continues:

sudo dpkg -r cyral-sidecar sidecar
dpkg: warning: ignoring request to remove cyral-sidecar which isn't installed
(Reading database ... 67831 files and directories currently installed.)
Removing sidecar (4.14.6-alpha) ...
Removed "/etc/systemd/system/multi-user.target.wants/cyral-alerter.service".
Removed "/etc/systemd/system/multi-user.target.wants/cyral-authenticator.service".
Removed "/etc/systemd/system/multi-user.target.wants/cyral-certificate-manager.service".
Removed "/etc/systemd/system/multi-user.target.wants/cyral-dispatcher.service".
Removed "/etc/systemd/system/multi-user.target.wants/cyral-forward-proxy.service".
Removed "/etc/systemd/system/multi-user.target.wants/cyral-oracle-wire.service".
Removed "/etc/systemd/system/multi-user.target.wants/cyral-pg-wire.service".
Removed "/etc/systemd/system/multi-user.target.wants/cyral-push-client.service".
Removed "/etc/systemd/system/multi-user.target.wants/cyral-service-monitor.service".
Removed "/etc/systemd/system/multi-user.target.wants/cyral-sqlserver-wire.service".

Copy link

@juniocezar juniocezar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes looks ok @vicagarcia . Anyway, this previous change from cyral-sidecar to just sidecar looks like a odd decision, unfortunately... sidecar could mean anything., from any vendor. lets see if wilson has any comments on the proposed changes

@vicagarcia vicagarcia merged commit a0c82c3 into main Aug 29, 2024
1 check passed
@vicagarcia vicagarcia deleted the fix-uninstall branch August 29, 2024 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants