Skip to content

Commit e1f350d

Browse files
committed
Merge branch 'develop' into 'main'
Merge 'develop' 'into 'master' See merge request passbolt/passbolt-ops/passbolt-dep-scripts!31
2 parents d3f13a1 + a757aad commit e1f350d

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

.gitlab-ci/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
ZYPPER_OPTIONS: ""
3535
SUSE_PACKAGE: ""
3636
script:
37-
- ${PACKAGE_MANAGER} install -y which ncurses procps ${SUSE_PACKAGE}
37+
- ${PACKAGE_MANAGER} install -y ncurses procps ${SUSE_PACKAGE}
3838
- bash passbolt-repo-setup."${PASSBOLT_FLAVOUR}".sh
3939
- ${PACKAGE_MANAGER} ${ZYPPER_OPTIONS} install -y passbolt-"${PASSBOLT_FLAVOUR}"-server
4040

passbolt-repo-setup.ce.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,13 @@ os_detect () {
141141
then
142142
CODENAME="focal"
143143
fi
144-
elif which zypper > /dev/null 2>&1
144+
elif command -v zypper >/dev/null 2>&1
145145
then
146146
PACKAGE_MANAGER=zypper
147-
elif which dnf > /dev/null 2>&1
147+
elif command -v dnf >/dev/null 2>&1
148148
then
149149
PACKAGE_MANAGER=dnf
150-
elif which yum > /dev/null 2>&1
150+
elif command -v yum >/dev/null 2>&1
151151
then
152152
PACKAGE_MANAGER=yum
153153
else
@@ -193,7 +193,6 @@ install_dependencies () {
193193
# adding module web scripting repo and his dependency module server application for PHP
194194
# SUSEConnect --product sle-module-server-applications/15.6/x86_64
195195
# SUSEConnect --product sle-module-web-scripting/15.6/x86_64
196-
# SUSEConnect --product PackageHub/15.6/x86_64
197196
# download the prerequisites packages
198197
${PACKAGE_MANAGER} --non-interactive install php8-fpm php8
199198
# create a default default php-fpm conf as it is required during the installer

passbolt-repo-setup.pro.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,13 @@ os_detect () {
141141
then
142142
CODENAME="focal"
143143
fi
144-
elif which zypper > /dev/null 2>&1
144+
elif command -v zypper >/dev/null 2>&1
145145
then
146146
PACKAGE_MANAGER=zypper
147-
elif which dnf > /dev/null 2>&1
147+
elif command -v dnf >/dev/null 2>&1
148148
then
149149
PACKAGE_MANAGER=dnf
150-
elif which yum > /dev/null 2>&1
150+
elif command -v yum >/dev/null 2>&1
151151
then
152152
PACKAGE_MANAGER=yum
153153
else
@@ -193,7 +193,6 @@ install_dependencies () {
193193
# adding module web scripting repo and his dependency module server application for PHP
194194
# SUSEConnect --product sle-module-server-applications/15.6/x86_64
195195
# SUSEConnect --product sle-module-web-scripting/15.6/x86_64
196-
# SUSEConnect --product PackageHub/15.6/x86_64
197196
# download the prerequisites packages
198197
${PACKAGE_MANAGER} --non-interactive install php8-fpm php8
199198
# create a default default php-fpm conf as it is required during the installer

0 commit comments

Comments
 (0)