-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
ibraupdate.sh
executable file
·23 lines (19 loc) · 999 Bytes
/
ibraupdate.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
######################################################################
# Title : Beachhead - Initial Installer for IBRAMENU
# By : DiscDuck, Taos15
# License : General Public License GPL-3.0-or-later
# Another fine product brought to you by IBRACORP™
######################################################################
sudo bash -c "rm -R /opt/ibracorp/ibramenu/"
sudo bash -c "git clone -b main --single-branch https://github.com/ibracorp/ibramenu.git /opt/ibracorp/ibramenu"
sudo find $ifolder -type f -iname "*.sh" -exec chmod +x {} \;
# update the custom docker netwrok use in all the containers
update_docker_network() {
read -p "Enter the name of your custome docker network (ex. ibranet) : " customnetwork
sed -i "s/^dockernet=.*$/dockernet=$customnetwork/" /opt/ibracorp/ibramenu/.profile
docker network create $customnetwork >/dev/null 2>&1
}
update_docker_network
# Include ibrafunc for all the awesome functions
source /opt/ibracorp/ibramenu/ibrafunc.sh