Created
April 23, 2019 14:35
-
-
Save erdnuesse/a2c9a62a812c0c8326892f67be0bc543 to your computer and use it in GitHub Desktop.
SLES15 google monitoring fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo su - | |
touch monitoring.sh | |
chmod +x monitoring.sh | |
echo #!/bin/bash >> monitoring.sh | |
echo zypper addrepo https://download.opensuse.org/repositories/editors/SLE_15/editors.repo >> monitoring.sh | |
echo zypper refresh >> monitoring.sh | |
echo zypper update >> monitoring.sh | |
echo pip install py-dateutil >> monitoring.sh | |
echo wget https://storage.googleapis.com/sap-netweaver-on-gcp/setupagent_linux.sh >> monitoring.sh | |
echo sed -i 's/if zypper in -y python-pip/if zypper in -y --auto-agree-with-licenses python-pip/g' setupagent_linux.sh >> monitoring.sh | |
echo sed -i 's/java-1_6_0-ibm/java-1_8_0-ibm/g' setupagent_linux.sh >> monitoring.sh | |
echo sed -i 's/libopenssl0_9_8/libopenssl1_1/g' setupagent_linux.sh >> monitoring.sh | |
echo chmod +x setupagent_linux.sh >> monitoring.sh | |
echo ./setupagent_linux.sh >> monitoring.sh | |
./monitoring.sh | |
exit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
zypper addrepo https://download.opensuse.org/repositories/editors/SLE_15/editors.repo | |
zypper refresh | |
zypper update | |
pip install py-dateutil | |
wget https://storage.googleapis.com/sap-netweaver-on-gcp/setupagent_linux.sh | |
sed -i 's/if zypper in -y python-pip/if zypper in -y --auto-agree-with-licenses python-pip/g' setupagent_linux.sh | |
sed -i 's/java-1_6_0-ibm/java-1_8_0-ibm/g' setupagent_linux.sh | |
sed -i 's/libopenssl0_9_8/libopenssl1_1/g' setupagent_linux.sh | |
chmod +x setupagent_linux.sh | |
./setupagent_linux.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment