mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Add iw_package when OS = ubuntu
This commit is contained in:
parent
6b01e6afae
commit
186af54185
@ -197,6 +197,7 @@ function _manage_systemd_services() {
|
|||||||
_install_status 0
|
_install_status 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Notifies Ubuntu users of pre-install requirements
|
||||||
function _check_notify_ubuntu() {
|
function _check_notify_ubuntu() {
|
||||||
if [ ${OS,,} = "ubuntu" ]; then
|
if [ ${OS,,} = "ubuntu" ]; then
|
||||||
_install_status 2 "Ubuntu Server requires manual pre- and post-install steps. See https://docs.raspap.com/manual/"
|
_install_status 2 "Ubuntu Server requires manual pre- and post-install steps. See https://docs.raspap.com/manual/"
|
||||||
@ -215,6 +216,8 @@ function _check_notify_ubuntu() {
|
|||||||
function _install_dependencies() {
|
function _install_dependencies() {
|
||||||
_install_log "Installing required packages"
|
_install_log "Installing required packages"
|
||||||
_set_php_package
|
_set_php_package
|
||||||
|
|
||||||
|
# OS-specific packages
|
||||||
if [ "$php_package" = "php7.4-cgi" ] && [ ${OS,,} = "ubuntu" ] && [[ ${RELEASE} =~ ^(22.04|20.04|18.04|19.10|11) ]]; then
|
if [ "$php_package" = "php7.4-cgi" ] && [ ${OS,,} = "ubuntu" ] && [[ ${RELEASE} =~ ^(22.04|20.04|18.04|19.10|11) ]]; then
|
||||||
echo "Adding apt-repository ppa:ondrej/php"
|
echo "Adding apt-repository ppa:ondrej/php"
|
||||||
sudo apt-get install -y software-properties-common || _install_status 1 "Unable to install dependency"
|
sudo apt-get install -y software-properties-common || _install_status 1 "Unable to install dependency"
|
||||||
@ -225,10 +228,14 @@ function _install_dependencies() {
|
|||||||
if [ ${OS,,} = "debian" ] || [ ${OS,,} = "ubuntu" ]; then
|
if [ ${OS,,} = "debian" ] || [ ${OS,,} = "ubuntu" ]; then
|
||||||
dhcpcd_package="dhcpcd5"
|
dhcpcd_package="dhcpcd5"
|
||||||
fi
|
fi
|
||||||
|
if [ ${OS,,} = "ubuntu" ]; then
|
||||||
|
iw_package="iw"
|
||||||
|
fi
|
||||||
|
|
||||||
# Set dconf-set-selections
|
# Set dconf-set-selections
|
||||||
echo iptables-persistent iptables-persistent/autosave_v4 boolean true | sudo debconf-set-selections
|
echo iptables-persistent iptables-persistent/autosave_v4 boolean true | sudo debconf-set-selections
|
||||||
echo iptables-persistent iptables-persistent/autosave_v6 boolean true | sudo debconf-set-selections
|
echo iptables-persistent iptables-persistent/autosave_v6 boolean true | sudo debconf-set-selections
|
||||||
sudo apt-get install -y lighttpd git hostapd dnsmasq iptables-persistent $php_package $dhcpcd_package vnstat qrencode || _install_status 1 "Unable to install dependencies"
|
sudo apt-get install -y lighttpd git hostapd dnsmasq iptables-persistent $php_package $dhcpcd_package $iw_package vnstat qrencode || _install_status 1 "Unable to install dependencies"
|
||||||
_install_status 0
|
_install_status 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user