Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit10dc9e3

Browse files
authored
fix: Force keeping old files to prevent dpkg failure on update (#2399)
Updating a release if system files failed would result in failure fromthe install script. This fixes it!
1 parent75205f5 commit10dc9e3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

‎install.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ install_deb() {
329329

330330
fetch"https://github.com/coder/coder/releases/download/v$VERSION/coder_${VERSION}_${OS}_${ARCH}.deb" \
331331
"$CACHE_DIR/coder_${VERSION}_$ARCH.deb"
332-
sudo_sh_c dpkg -i"$CACHE_DIR/coder_${VERSION}_$ARCH.deb"
332+
sudo_sh_c dpkg --force-confdef --force-confold -i"$CACHE_DIR/coder_${VERSION}_$ARCH.deb"
333333

334334
echo_systemd_postinstall deb
335335
}

‎preinstall.sh‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ USER="coder"
66
# Add a Coder user to run as in systemd.
77
if! id -u$USER>/dev/null2>&1;then
88
useradd \
9+
--create-home \
910
--system \
1011
--user-group \
1112
--shell /bin/false \

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp