-
Notifications
You must be signed in to change notification settings - Fork 8.1k
issue #5409 support for amazonlinux, tarball reinstall / upgrade and clean up #5420
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
Conversation
| if [[ "$repobased" == true ]] ; then | ||
| echo "*** NOTE: Run your regular package manager update cycle to update PowerShell Core" | ||
| else | ||
| echo "*** NOTE: Re-run this script to update PowerShell Core" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line should be added to installpsh-suse.sh too.
| exit 1 | ||
| fi | ||
|
|
||
| echo "Installing PowerShell to /opt/microsoft/powershell/$release in overwrite mode" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add this line to installpsh-suse.sh too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For this comment and the one below, they are about adding the ehco message to the same place in installpsh-suse.sh. Making this change won't need additional tests as it's just adding a log message. Could you please do it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is made, squashed and pushed - but this PR is now showing as "closed" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DarwinJS The timeline of this PR shows that you closed it ... But I see you already opened a new PR.
| DIST=`cat /etc/system-release |sed s/\ release.*//` | ||
| PSUEDONAME=`cat /etc/system-release | sed s/.*\(// | sed s/\)//` | ||
| REV=`cat /etc/system-release | sed s/.*release\ // | sed s/\ .*//` | ||
| if [[ $DIST == *"Amazon Linux"* ]] ; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code to check current OS and DistroBasedOn is different from other installsh- scripts targeting other Linux distros. Are you going to unify them all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although it could be done, it's not absolutely necessary so I tacked toward minimal changes to anything I wasn't going to unit test before doing the PR. install-powershell.sh needs it to correctly call installpsh-amazonlinux.sh and then installpsh-amazonlinux.sh needs it to validate the correct installer. None of the others need the amazonlinux piece - but I can also understand keeping this bit of code the same. I don't currently have the bandwidth to test if I change the others.
Let me know what you think we should do with this and then I'll do one update and include the other two items you mentioned in this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the clarification. I'm fine with the current change.
It would be more consistent if this piece of code can be unified, but that can be done in separate PRs. #closed
as discussed in 5409: