Reorder pacman arguments

This commit is contained in:
Mark Vainomaa 2018-09-23 16:04:44 +03:00
parent df7743b5c2
commit 756f49aba4
No known key found for this signature in database
GPG key ID: 1B3F9523B542D315

View file

@ -571,7 +571,7 @@ function installOpenVPN () {
fi
if [[ "$OS" = 'arch' ]]; then
# Install dependencies
pacman -Syu openvpn iptables openssl wget ca-certificates curl --needed --noconfirm
pacman --needed --noconfirm -Syu openvpn iptables openssl wget ca-certificates curl
iptables-save > /etc/iptables/iptables.rules # iptables won't start if this file does not exist
systemctl daemon-reload
systemctl enable iptables
@ -1037,7 +1037,7 @@ function removeUnbound () {
if [[ "$OS" = 'debian' ]]; then
apt-get autoremove --purge -y unbound
elif [[ "$OS" = 'arch' ]]; then
pacman -R unbound --noconfirm
pacman --noconfirm -R unbound
elif [[ "$OS" = 'centos' ]]; then
yum remove unbound -y
elif [[ "$OS" = 'fedora' ]]; then
@ -1098,7 +1098,7 @@ function removeOpenVPN () {
apt-get update
fi
elif [[ "$OS" = 'arch' ]]; then
pacman -R openvpn --noconfirm
pacman --noconfirm -R openvpn
elif [[ "$OS" = 'centos' ]]; then
yum remove openvpn -y
elif [[ "$OS" = 'fedora' ]]; then