Add rsync dependency for Debian distros

This commit is contained in:
billz 2023-12-12 17:18:25 +00:00
parent 581622ef0c
commit 14f3a4dc09

View file

@ -234,7 +234,8 @@ function _install_dependencies() {
if [ ${OS,,} = "debian" ] || [ ${OS,,} = "ubuntu" ]; then
dhcpcd_package="dhcpcd5"
iw_package="iw"
echo "${dhcpcd_package} and ${iw_package} will be installed from the main deb sources list"
rsync_package="rsync"
echo "${dhcpcd_package}, ${iw_package} and ${rsync_package} will be installed from the main deb sources list"
fi
if [ ${OS,,} = "raspbian" ] && [[ ${RELEASE} =~ ^(12) ]]; then
dhcpcd_package="dhcpcd dhcpcd-base"
@ -248,7 +249,7 @@ function _install_dependencies() {
# Set dconf-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
sudo apt-get install -y lighttpd git hostapd dnsmasq iptables-persistent $php_package $dhcpcd_package $iw_package $network_tools vnstat qrencode jq isoquery || _install_status 1 "Unable to install dependencies"
sudo apt-get install -y lighttpd git hostapd dnsmasq iptables-persistent $php_package $dhcpcd_package $iw_package $rsync_package $network_tools vnstat qrencode jq isoquery || _install_status 1 "Unable to install dependencies"
_install_status 0
}