File tree 3 files changed +22
-4
lines changed
dockers/docker-fpm-frr/base_image_files
3 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ # Restrict command to sudo users
4
+ if [ " $EUID " -ne 0 ] ; then
5
+ echo " Root priveleges are needed for this operation"
6
+ exit 1
7
+ fi
8
+
3
9
if [ -f /etc/sonic/chassisdb.conf ]; then
4
- rexec all -c " TSA chassis"
10
+ rexec all -c " sudo TSA chassis"
5
11
echo " Please execute \" rexec all -c 'sudo config save -y'\" to preserve System mode in Maintenance after reboot\
6
12
or config reload on all linecards"
7
13
exit 0
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ # Restrict command to sudo users
4
+ if [ " $EUID " -ne 0 ] ; then
5
+ echo " Root priveleges are needed for this operation"
6
+ exit 1
7
+ fi
8
+
3
9
# If run on supervisor of chassis, trigger remote execution of TSB on all linecards
4
10
if [ -f /etc/sonic/chassisdb.conf ]; then
5
- rexec all -c " TSB chassis"
11
+ rexec all -c " sudo TSB chassis"
6
12
echo " Please execute \" rexec all -c 'sudo config save -y'\" to preserve System mode in Normal state after reboot\
7
13
or config reload on all linecards"
8
14
exit 0
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ # Restrict command to sudo users
4
+ if [ " $EUID " -ne 0 ] ; then
5
+ echo " Root priveleges are needed for this operation"
6
+ exit 1
7
+ fi
8
+
3
9
if [ -f /etc/sonic/chassisdb.conf ]; then
4
10
if [[ $1 == " no-stats" ]]; then
5
- rexec all -c " TSC no-stats"
11
+ rexec all -c " sudo TSC no-stats"
6
12
else
7
- rexec all -c " TSC"
13
+ rexec all -c " sudo TSC"
8
14
fi
9
15
exit 0
10
16
fi
You can’t perform that action at this time.
0 commit comments