mirror of
https://github.com/unifi-utilities/unifios-utilities.git
synced 2024-08-30 18:32:21 +00:00
Update interactive_setup.sh (#563)
Fix mv-br5.network filename and clean up some typos/leftovers
This commit is contained in:
parent
0874c3fca7
commit
e6e48d6d17
@ -8,12 +8,11 @@
|
|||||||
# The process involves installing systemd-container and debootstrap and using them to create
|
# The process involves installing systemd-container and debootstrap and using them to create
|
||||||
# a base debian system in /data/custom/machines directory.
|
# a base debian system in /data/custom/machines directory.
|
||||||
#Author : Apo-mak
|
#Author : Apo-mak
|
||||||
#Last Date Edited : 09-04-2023
|
#Last Date Edited : 09-06-2023
|
||||||
###################################################################
|
###################################################################
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
dnsfile="10-dns.sh"
|
|
||||||
container_name="debian-custom"
|
container_name="debian-custom"
|
||||||
container_root_pasword="12345678"
|
container_root_pasword="12345678"
|
||||||
|
|
||||||
@ -67,27 +66,27 @@ function echo_variables(){
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function create_custom_ontainer_simple(){
|
function create_custom_container_simple(){
|
||||||
echo "You have selected to setup a container that has access to all the host network
|
echo "You have selected to setup a container that has access to all the host network
|
||||||
interfaces and full capabilities to do anything to the system"
|
interfaces and full capabilities to do anything to the system"
|
||||||
read -p "Press enter to continue OR ctrl + c to cancel."
|
read -p "Press enter to continue OR ctrl + c to cancel."
|
||||||
create_custom_ontainer ;
|
create_custom_container ;
|
||||||
setup_networking_simple ;
|
setup_networking_simple ;
|
||||||
setup_persistence ;
|
setup_persistence ;
|
||||||
setup_backup_dpkg_files
|
setup_backup_dpkg_files
|
||||||
}
|
}
|
||||||
|
|
||||||
function create_custom_ontainer_macvlan(){
|
function create_custom_container_macvlan(){
|
||||||
echo "You have selected to setup a container to use an Isolated MacVLAN Network AKA Vlan."
|
echo "You have selected to setup a container to use an Isolated MacVLAN Network AKA Vlan."
|
||||||
read -p "Press enter to continue OR ctrl + c to cancel."
|
read -p "Press enter to continue OR ctrl + c to cancel."
|
||||||
create_custom_ontainer ;
|
create_custom_container ;
|
||||||
setup_networking_MACVLAN ;
|
setup_networking_MACVLAN ;
|
||||||
setup_persistence ;
|
setup_persistence ;
|
||||||
setup_backup_dpkg_files
|
setup_backup_dpkg_files
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function create_custom_ontainer() {
|
function create_custom_container() {
|
||||||
echo ""
|
echo ""
|
||||||
echo " Creating a Custom Container on UnifiOS 3.x"
|
echo " Creating a Custom Container on UnifiOS 3.x"
|
||||||
echo ""
|
echo ""
|
||||||
@ -191,7 +190,7 @@ EOF
|
|||||||
#####Configure your container to set the IP and gateway you defined in 10-setup-network.sh
|
#####Configure your container to set the IP and gateway you defined in 10-setup-network.sh
|
||||||
cd /data/custom/machines/"$container_name"/etc/systemd/network
|
cd /data/custom/machines/"$container_name"/etc/systemd/network
|
||||||
|
|
||||||
cat <<EOF > mv-br5.network
|
cat <<EOF > mv-br${vlan_id}.network
|
||||||
[Match]
|
[Match]
|
||||||
Name=mv-br$vlan_id
|
Name=mv-br$vlan_id
|
||||||
|
|
||||||
@ -266,8 +265,8 @@ $(ColorGreen '0)') Exit
|
|||||||
$(ColorBlue 'Choose an option:') "
|
$(ColorBlue 'Choose an option:') "
|
||||||
read a
|
read a
|
||||||
case $a in
|
case $a in
|
||||||
1) create_custom_ontainer_simple ; menu ;;
|
1) create_custom_container_simple ; menu ;;
|
||||||
2) create_custom_ontainer_macvlan ; menu ;;
|
2) create_custom_container_macvlan ; menu ;;
|
||||||
3) setup_adguard ; menu ;;
|
3) setup_adguard ; menu ;;
|
||||||
4) echo_variables ; menu ;;
|
4) echo_variables ; menu ;;
|
||||||
5) set_variables ; menu ;;
|
5) set_variables ; menu ;;
|
||||||
|
Loading…
Reference in New Issue
Block a user