2016-06-16 12:03:29 +02:00
|
|
|
UPDATE_URL="https://raw.githubusercontent.com/billz/raspap-webgui/master/"
|
|
|
|
wget -q ${UPDATE_URL}/installers/common.sh -O /tmp/raspapcommon.sh
|
|
|
|
source /tmp/raspapcommon.sh && rm -f /tmp/raspapcommon.sh
|
|
|
|
|
|
|
|
function update_system_packages() {
|
|
|
|
install_log "Updating sources"
|
2016-06-16 15:16:54 +02:00
|
|
|
sudo apt-get update || install_error "Unable to update package list"
|
2016-06-16 12:03:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
function install_dependencies() {
|
|
|
|
install_log "Installing required packages"
|
2018-08-21 16:34:01 +02:00
|
|
|
sudo apt-get install lighttpd $php_package git hostapd dnsmasq vnstat || install_error "Unable to install dependencies"
|
2016-06-16 12:03:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
install_raspap
|