Skip to content

Commit 4880aa5

Browse files
cursoragentlovasoa
andcommitted
Fix: Use ubuntu-20.04 for wider glibc compatibility
Co-authored-by: contact <[email protected]>
1 parent 3e82167 commit 4880aa5

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

.github/workflows/packages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ permissions:
2525
jobs:
2626
build-deb:
2727
name: Build Debian Package
28-
runs-on: ubuntu-22.04
28+
runs-on: ubuntu-20.04 # Use older Ubuntu for wider glibc compatibility
2929
steps:
3030
- uses: actions/checkout@v4
3131
with:

debian/postinst

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,17 @@ case "$1" in
55
configure)
66
# Create sqlpage user if it doesn't exist
77
if ! getent passwd sqlpage >/dev/null; then
8-
adduser --system --group --home /var/www/sqlpage \
9-
--no-create-home --disabled-password \
10-
--shell /usr/sbin/nologin \
11-
--gecos "SQLPage web server" sqlpage
8+
# Try adduser first (Debian/Ubuntu), fall back to useradd (minimal containers)
9+
if command -v adduser >/dev/null 2>&1; then
10+
adduser --system --group --home /var/www/sqlpage \
11+
--no-create-home --disabled-password \
12+
--shell /usr/sbin/nologin \
13+
--gecos "SQLPage web server" sqlpage
14+
else
15+
useradd --system --user-group --home-dir /var/www/sqlpage \
16+
--no-create-home --shell /usr/sbin/nologin \
17+
--comment "SQLPage web server" sqlpage
18+
fi
1219
fi
1320

1421
# Set ownership and permissions

rpm/sqlpage.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ DuckDB, Oracle, Snowflake, BigQuery, and IBM DB2.
3939

4040
%build
4141
export CARGO_HOME=$(pwd)/.cargo
42-
cargo build --profile superoptimized --locked --release
42+
cargo build --profile superoptimized --locked
4343

4444
%install
4545
rm -rf %{buildroot}

0 commit comments

Comments
 (0)