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

sudo check is missing in nhost sw upgrade #731

Open
hrmoller opened this issue Jun 17, 2023 · 2 comments
Open

sudo check is missing in nhost sw upgrade #731

hrmoller opened this issue Jun 17, 2023 · 2 comments

Comments

@hrmoller
Copy link

I just ran nhost sw upgrade (on version) 1.0.5 which without prompting for sudo permissions attempted to upgrade to 1.1.0. However, the below error occurred as I was not sudo.

╰─❯ nhost sw upgrade
Upgrading to v1.1.0...
Copying to /usr/local/bin/nhost...
main.go:59: failed to rename /var/folders/0l/vrwslkvj26dc6pwjnhnq2c9w0000gn/T/nhost-cli-3142043354 to /usr/local/bin/nhost: rename /var/folders/0l/vrwslkvj26dc6pwjnhnq2c9w0000gn/T/nhost-cli-3142043354 /usr/local/bin/nhost: permission denied

On 1.1.0 it still seems as the upgrade can be executed without being sudo but I guess it can't be completed for the same reason as above.

As far as I remember there was a sudo check in the pre-1.0.0 versions of the nhost cli which is just nice for convenience.

Thread on Discord for reference: https://discord.com/channels/552499021260914688/1027264736842231948/threads/1119229893574656151

Copy link

stale bot commented Dec 14, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Dec 14, 2023
@dbarrosop dbarrosop removed the stale label Dec 18, 2023
Copy link

stale bot commented Jun 15, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jun 15, 2024
@stale stale bot closed this as completed Jun 22, 2024
@dbarrosop dbarrosop reopened this Jun 24, 2024
@stale stale bot removed the stale label Jun 24, 2024
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

No branches or pull requests

2 participants