2016-06-16 10:03:29 +00: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 13:16:54 +00:00
|
|
|
sudo apt-get update || install_error "Unable to update package list"
|
2016-06-16 10:03:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function install_dependencies() {
|
|
|
|
install_log "Installing required packages"
|
2018-09-13 23:07:23 +00:00
|
|
|
sudo apt-get install lighttpd $php_package git hostapd dnsmasq vnstat || install_error "Unable to install dependencies"
|
2016-06-16 10:03:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
install_raspap
|