Skip to content

Commit

Permalink
Merge pull request #1383 from RaspAP/maint/installer
Browse files Browse the repository at this point in the history
Updates Quick installer w/ doc link to authentication (Insiders)
  • Loading branch information
billz authored Aug 25, 2023
2 parents 9d0b565 + 2ea85a7 commit 8739acd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
20 changes: 15 additions & 5 deletions installers/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,10 @@ function _download_latest_files() {
fi

_install_log "Cloning latest files from github"
if [ "$repo" == "RaspAP/raspap-insiders" ]; then
_install_status 3
echo "Insiders please read this: https://docs.raspap.com/insiders/#authentication"
fi
git clone --branch $branch --depth 1 -c advice.detachedHead=false $git_source_url /tmp/raspap-webgui || _install_status 1 "Unable to download files from github"
sudo mv /tmp/raspap-webgui $webroot_dir || _install_status 1 "Unable to move raspap-webgui to web root"

Expand Down Expand Up @@ -747,11 +751,17 @@ function _optimize_php() {

function _install_complete() {
_install_log "Installation completed"
echo "Join RaspAP Insiders for early access to exclusive features!"
echo -e "${ANSI_RASPBERRY}"
echo "> https://docs.raspap.com/insiders/"
echo "> https://github.com/sponsors/RaspAP/"
echo -e "${ANSI_RESET}"
if [ "$repo" == "RaspAP/raspap-insiders" ]; then
echo -e "${ANSI_RASPBERRY}"
echo "Thank you for supporting this project as an Insider!"
echo -e "${ANSI_RESET}"
else
echo "Join RaspAP Insiders for early access to exclusive features!"
echo -e "${ANSI_RASPBERRY}"
echo "> https://docs.raspap.com/insiders/"
echo "> https://github.com/sponsors/RaspAP/"
echo -e "${ANSI_RESET}"
fi
if [ "$assume_yes" == 0 ]; then
# Prompt to reboot if wired ethernet (eth0) is connected.
# With default_configuration this will create an active AP on restart.
Expand Down
2 changes: 2 additions & 0 deletions installers/raspbian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ function _install_status() {
2)
echo -e "[$ANSI_YELLOW \U26A0 warning $ANSI_RESET] $2"
;;
3)
echo -e "[$ANSI_RASPBERRY ! important $ANSI_RESET] $2"
esac
}

Expand Down

0 comments on commit 8739acd

Please sign in to comment.