mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
fix: Force keeping old files to prevent dpkg failure on update (#2399)
Updating a release if system files failed would result in failure from the install script. This fixes it!
This commit is contained in:
+1
-1
@@ -329,7 +329,7 @@ install_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"
|
||||
sudo_sh_c dpkg --force-confdef --force-confold -i "$CACHE_DIR/coder_${VERSION}_$ARCH.deb"
|
||||
|
||||
echo_systemd_postinstall deb
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ USER="coder"
|
||||
# Add a Coder user to run as in systemd.
|
||||
if ! id -u $USER >/dev/null 2>&1; then
|
||||
useradd \
|
||||
--create-home \
|
||||
--system \
|
||||
--user-group \
|
||||
--shell /bin/false \
|
||||
|
||||
Reference in New Issue
Block a user