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

Descriptive function name + insiders flag check

This commit is contained in:
billz 2021-04-15 09:00:14 +01:00
parent 0c9152fff3
commit 263e326281

View File

@ -56,14 +56,16 @@ function _install_raspap() {
_configure_networking _configure_networking
_prompt_install_adblock _prompt_install_adblock
_prompt_install_openvpn _prompt_install_openvpn
_install_features _install_mobile_clients
_prompt_install_wireguard _prompt_install_wireguard
_patch_system_files _patch_system_files
_install_complete _install_complete
} }
# search for optional installation files names install_feature_*.sh # search for optional installation files names install_feature_*.sh
function _install_features() { function _install_mobile_clients() {
if [ "$insiders" == 1 ]; then
echo -n "Installing support for mobile data clients"
for feature in $(ls $webroot_dir/installers/install_feature_*.sh) ; do for feature in $(ls $webroot_dir/installers/install_feature_*.sh) ; do
source $feature source $feature
f=$(basename $feature) f=$(basename $feature)
@ -75,6 +77,7 @@ function _install_features() {
_install_status 1 "Install file $f is missing install function $func" _install_status 1 "Install file $f is missing install function $func"
fi fi
done done
fi
} }
# Prompts user to set installation options # Prompts user to set installation options