Skip to content

feat: one-line install script #1924

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

Merged
merged 21 commits into from
Jun 1, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix variable format
  • Loading branch information
bpmct committed May 31, 2022
commit 5d236005af9e9134a10c23f39bce94833e4022c2
14 changes: 7 additions & 7 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ install_deb() {
echoh "Installing v$VERSION of the $ARCH deb package from GitHub."
echoh

fetch "https://github.com/coder/coder/releases/download/v$VERSION/coder_${VERSION}_$OS_$ARCH.deb" \
fetch "https://github.com/coder/coder/releases/download/v$VERSION/coder_${VERSION}_${OS}_${ARCH}.deb" \
"$CACHE_DIR/coder_${VERSION}_$ARCH.deb"
sudo_sh_c dpkg -i "$CACHE_DIR/coder_${VERSION}_$ARCH.deb"

Expand All @@ -312,9 +312,9 @@ install_rpm() {
echoh "Installing v$VERSION of the $ARCH rpm package from GitHub."
echoh

fetch "https://github.com/coder/coder/releases/download/v$VERSION/coder_${VERSION}_$OS_$ARCH.rpm" \
"$CACHE_DIR/coder_${VERSION}_$OS_$ARCH.rpm"
sudo_sh_c rpm -i "$CACHE_DIR/coder_${VERSION}_$OS_$ARCH.rpm"
fetch "https://github.com/coder/coder/releases/download/v$VERSION/coder_${VERSION}_${OS}_${ARCH}.rpm" \
"$CACHE_DIR/coder_${VERSION}_${OS}_${ARCH}.rpm"
sudo_sh_c rpm -i "$CACHE_DIR/coder_${VERSION}_${OS}_${ARCH}.rpm"

echo_systemd_postinstall rpm
}
Expand All @@ -323,9 +323,9 @@ install_apk() {
echoh "Installing v$VERSION of the $ARCH apk package from GitHub."
echoh

fetch "https://github.com/coder/coder/releases/download/v$VERSION/coder_${VERSION}_$OS_$ARCH.apk" \
"$CACHE_DIR/coder_${VERSION}_$OS_$ARCH.apk"
sudo_sh_c apk add --allow-untrusted "$CACHE_DIR/coder_${VERSION}_$OS_$ARCH.apk"
fetch "https://github.com/coder/coder/releases/download/v$VERSION/coder_${VERSION}_${OS}_${ARCH}.apk" \
"$CACHE_DIR/coder_${VERSION}_${OS}_${ARCH}.apk"
sudo_sh_c apk add --allow-untrusted "$CACHE_DIR/coder_${VERSION}_${OS}_${ARCH}.apk"

echo_systemd_postinstall apk
}
Expand Down