pull/2/head
necro-nemesis 6 years ago
parent 460ae1379c
commit 17d7ca7786

@ -25,12 +25,12 @@ fi
# Outputs a SNApp-Pi-Host Install log line # Outputs a SNApp-Pi-Host Install log line
function install_log() { function install_log() {
echo -e "\033[1;32mLokiAP Install: $*\033[m" echo -e "\033[1;32mSNApp Install: $*\033[m"
} }
# Outputs a SNApp-Pi-Host Install Error log line and exits with status code 1 # Outputs a SNApp-Pi-Host Install Error log line and exits with status code 1
function install_error() { function install_error() {
echo -e "\033[1;37;41mLokiAP Install Error: $*\033[m" echo -e "\033[1;37;41mSNApp Install Error: $*\033[m"
exit 1 exit 1
} }
@ -81,7 +81,6 @@ function create_webpage_directory() {
sudo chown -R $username:$username "$snapp_dir" || install_error "Unable to change file ownership for '$snapp_dir'" sudo chown -R $username:$username "$snapp_dir" || install_error "Unable to change file ownership for '$snapp_dir'"
} }
# Fetches latest files from github for basic SNapp # Fetches latest files from github for basic SNapp
function download_latest_files() { function download_latest_files() {
@ -126,21 +125,11 @@ function install_complete() {
function install_pihost() { function install_pihost() {
display_welcome display_welcome
config_installation
update_system_packages update_system_packages
install_dependencies install_dependencies
stop_lokinet create_user
check_for_networkmananger create_webpage_directory
optimize_php
enable_php_lighttpd
create_raspap_directories
check_for_old_configs
download_latest_files download_latest_files
change_file_ownership change_file_ownership
create_logging_scripts
move_config_file
network_tables
default_configuration
patch_system_files
install_complete install_complete
} }

Loading…
Cancel
Save