Support for Oracle Linux 8.

This commit is contained in:
Łukasz Filiepk 2021-03-14 16:25:25 +01:00
parent e299a247a0
commit 14991bbadb

View file

@ -68,10 +68,10 @@ function checkOS() {
if [[ $ID == "oracle" ]]; then if [[ $ID == "oracle" ]]; then
OS="oracle" OS="oracle"
if [[ ! $VERSION_ID =~ (8) ]]; then if [[ ! $VERSION_ID =~ (8) ]]; then
echo "Your version of Oracle Linux is not supported." echo "Your version of Oracle Linux is not supported."
echo "" echo ""
echo "The script only support Oracle Linux 8." echo "The script only support Oracle Linux 8."
exit 1 exit 1
fi fi
fi fi
if [[ $ID == "amzn" ]]; then if [[ $ID == "amzn" ]]; then
@ -921,7 +921,7 @@ verb 3" >>/etc/openvpn/server.conf
fi fi
# Finally, restart and enable OpenVPN # Finally, restart and enable OpenVPN
if [[ $OS == 'arch' || $OS == 'fedora' || $OS == 'centos'|| $OS == 'oracle' ]]; then if [[ $OS == 'arch' || $OS == 'fedora' || $OS == 'centos' || $OS == 'oracle' ]]; then
# Don't modify package-provided service # Don't modify package-provided service
cp /usr/lib/systemd/system/openvpn-server@.service /etc/systemd/system/openvpn-server@.service cp /usr/lib/systemd/system/openvpn-server@.service /etc/systemd/system/openvpn-server@.service