Skip to content

Commit c141b3c

Browse files
authored
Update install.sh
1 parent 1767ec7 commit c141b3c

File tree

1 file changed

+34
-10
lines changed

1 file changed

+34
-10
lines changed

install.sh

Lines changed: 34 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ EOL
8484

8585
start_obfs4() {
8686
echo -e "${YELLOW}Starting obfs4 service...${NC}"
87-
obfs4proxy -logLevel INFO -enableLogging &
87+
obfs4proxy -logLevel INFO -enableLogging >/dev/null 2>&1 &
8888
if [ $? -eq 0 ]; then
8989
echo -e "${GREEN}obfs4 service started successfully.${NC}"
9090
else
@@ -121,7 +121,7 @@ nebula_menu() {
121121
echo "||__| \__| |_______||______/ \______/ |_______/__/ \__\ |"
122122
echo "| |"
123123
echo "+--------------------------------------------------------------+"
124-
echo -e "| Telegram Channel : ${MAGENTA}@AminiDev ${NC}| Version : ${GREEN} 7.0.0 ${NC} "
124+
echo -e "| Telegram Channel : ${MAGENTA}@AminiDev ${NC}| Version : ${GREEN} 7.1.0 ${NC} "
125125
echo "+--------------------------------------------------------------------------------+"
126126
echo -e "| Telegram Channel Sponsor : ${GREEN}VNodePro ${NC} "
127127
echo "+--------------------------------------------------------------------------------+"
@@ -168,8 +168,11 @@ network:
168168
addresses:
169169
- $ipv4_local/24
170170
EOL
171+
# Set strict permissions to avoid warnings
172+
chmod 600 /etc/netplan/mramini-$1.yaml
173+
171174
netplan_setup
172-
sudo netplan apply
175+
sudo netplan apply 2>/dev/null
173176

174177
start_obfs4
175178

@@ -209,8 +212,11 @@ network:
209212
addresses:
210213
- $ipv4_local/24
211214
EOL
215+
# Set strict permissions to avoid warnings
216+
chmod 600 /etc/netplan/mramini-$1.yaml
217+
212218
netplan_setup
213-
sudo netplan apply
219+
sudo netplan apply 2>/dev/null
214220

215221
start_obfs4
216222

@@ -249,8 +255,11 @@ network:
249255
addresses:
250256
- $2/24
251257
EOL
258+
# Set strict permissions to avoid warnings
259+
chmod 600 /etc/netplan/mramini-$1.yaml
260+
252261
netplan_setup
253-
sudo netplan apply
262+
sudo netplan apply 2>/dev/null
254263

255264
start_obfs4
256265

@@ -289,8 +298,11 @@ network:
289298
addresses:
290299
- $2/24
291300
EOL
301+
# Set strict permissions to avoid warnings
302+
chmod 600 /etc/netplan/mramini-$1.yaml
303+
292304
netplan_setup
293-
sudo netplan apply
305+
sudo netplan apply 2>/dev/null
294306

295307
start_obfs4
296308

@@ -407,8 +419,11 @@ network:
407419
addresses:
408420
- $ipv6_local::1/64
409421
EOL
422+
# Set strict permissions to avoid warnings
423+
chmod 600 /etc/netplan/mramini-$1.yaml
424+
410425
netplan_setup
411-
sudo netplan apply
426+
sudo netplan apply 2>/dev/null
412427

413428
start_obfs4
414429

@@ -444,8 +459,11 @@ network:
444459
addresses:
445460
- $2/64
446461
EOL
462+
# Set strict permissions to avoid warnings
463+
chmod 600 /etc/netplan/mramini-$1.yaml
464+
447465
netplan_setup
448-
sudo netplan apply
466+
sudo netplan apply 2>/dev/null
449467

450468
start_obfs4
451469

@@ -482,8 +500,11 @@ network:
482500
addresses:
483501
- $ipv6_local::2/64
484502
EOL
503+
# Set strict permissions to avoid warnings
504+
chmod 600 /etc/netplan/mramini-$1.yaml
505+
485506
netplan_setup
486-
sudo netplan apply
507+
sudo netplan apply 2>/dev/null
487508

488509
start_obfs4
489510

@@ -519,8 +540,11 @@ network:
519540
addresses:
520541
- $2/64
521542
EOL
543+
# Set strict permissions to avoid warnings
544+
chmod 600 /etc/netplan/mramini-$1.yaml
545+
522546
netplan_setup
523-
sudo netplan apply
547+
sudo netplan apply 2>/dev/null
524548

525549
start_obfs4
526550

0 commit comments

Comments
 (0)