File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
docker/images/proxysql/suse-compliant/rpmmacros/rpmbuild/SPECS Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -319,7 +319,7 @@ amd64-almalinux: almalinux8 almalinux8-clang almalinux8-dbg almalinux9 almalinux
319319amd64-centos : centos9 centos9-clang centos9-dbg centos10 centos10-clang centos10-dbg
320320amd64-debian : debian12 debian12-clang debian12-dbg debian13 debian13-clang debian13-dbg
321321amd64-fedora : fedora40 fedora40-clang fedora40-dbg fedora41 fedora41-clang fedora41-dbg fedora42 fedora42-clang fedora42-dbg
322- amd64-opensuse : opensuse15 opensuse15-clang opensuse15-dbg
322+ amd64-opensuse : opensuse15 opensuse15-clang opensuse15-dbg opensuse16 opensuse16-clang opensuse16-dbg
323323amd64-ubuntu : ubuntu22 ubuntu22-clang ubuntu22-dbg ubuntu24 ubuntu24-clang ubuntu24-dbg
324324amd64-pkglist :
325325 @${MAKE} -nk amd64-packages 2> /dev/null | grep -Po ' (?<=binaries/)proxysql\S+$$'
@@ -330,7 +330,7 @@ arm64-almalinux: almalinux8 almalinux9 almalinux10
330330arm64-centos : centos9 centos10
331331arm64-debian : debian12 debian13
332332arm64-fedora : fedora40 fedora41 fedora42
333- arm64-opensuse : opensuse15
333+ arm64-opensuse : opensuse15 opensuse16
334334arm64-ubuntu : ubuntu22 ubuntu24
335335arm64-pkglist :
336336 @${MAKE} -nk arm64-packages 2> /dev/null | grep -Po ' (?<=binaries/)proxysql\S+$$'
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ Source: %{name}-%{version}.tar.gz
1111URL: https://proxysql.com/
1212Requires: gnutls, (openssl >= 3.0.0 or openssl3 >= 3.0.0)
1313BuildRoot: %{_tmppath }/%{name }-%{version }-%{release }-root
14+ Provides: group(%{name })
1415
1516%description
1617%{summary }
@@ -23,6 +24,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
2324if [ -f /var/lib/%{name}/PROXYSQL_UPGRADE ]; then
2425 rm -fr /var/lib/%{name}/PROXYSQL_UPGRADE
2526fi
27+ if ! id -u %{name} > /dev/null 2>&1 ; then useradd -r -U -s /bin/false -d /var/lib/%{name} -c " ProxySQL Server" %{name}; fi
2628
2729%build
2830# Packages are pre-built, nothing to do
4042# Create relevant user, directories and configuration files
4143if [ ! -d /var/run/%{name} ]; then /bin/mkdir /var/run/%{name} ; fi
4244if [ ! -d /var/lib/%{name} ]; then /bin/mkdir /var/lib/%{name} ; fi
43- if ! id -u %{name} > /dev/null 2>&1 ; then useradd -r -U -s /bin/false -d /var/lib/%{name} -c " ProxySQL Server" %{name}; fi
4445/bin/chown -R %{name }: /var/lib/%{name } /var/run/%{name }
4546/bin/chown root:%{name } /etc/%{name }.cnf
4647/bin/chmod 640 /etc/%{name }.cnf
You can’t perform that action at this time.
0 commit comments