Support for Oracle Linux 8.
This commit is contained in:
parent
e299a247a0
commit
14991bbadb
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue