1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00
raspap-webgui/installers/raspbian.sh

35 lines
848 B
Bash
Raw Normal View History

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
2019-09-30 19:58:12 +02:00
assume_yes=0
positional=()
while [[ $# -gt 0 ]]
do
key="$1"
case $key in
-y|--yes|--assume-yes)
assume_yes=1
apt_option="-y"
shift # past argument
shift # past value
;;
*) # unknown option
shift # past argument
;;
esac
done
2016-06-16 12:03:29 +02:00
function update_system_packages() {
install_log "Updating sources"
2019-07-10 08:46:58 +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"
sudo apt-get install $apt_option lighttpd $php_package git hostapd dnsmasq vnstat || install_error "Unable to install dependencies"
2016-06-16 12:03:29 +02:00
}
install_raspap