Skip to content

Commit 1178b3c

Browse files
Add workaround for missing systemd-sysv-install on SLES 16 in elasticsearch install script
1 parent 19696c9 commit 1178b3c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

  • integration_test/third_party_apps_test/applications/elasticsearch/sles

integration_test/third_party_apps_test/applications/elasticsearch/sles/install

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,12 @@ sudo zypper install -y elasticsearch
3838
sudo zypper modifyrepo --disable elasticsearch
3939

4040
sudo systemctl daemon-reload
41+
42+
if [[ "$SUSE_VERSION" == 16 ]] && [ ! -f /usr/lib/systemd/systemd-sysv-install ]; then
43+
sudo mkdir -p /usr/lib/systemd
44+
echo -e '#!/bin/sh\nexit 0' | sudo tee /usr/lib/systemd/systemd-sysv-install > /dev/null
45+
sudo chmod +x /usr/lib/systemd/systemd-sysv-install
46+
fi
47+
4148
sudo systemctl enable elasticsearch
4249
sudo systemctl restart elasticsearch

0 commit comments

Comments
 (0)