You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: fullsysbackup.sh
+4-4
Original file line number
Diff line number
Diff line change
@@ -18,10 +18,10 @@ backuppaths=(
18
18
###### End Of Configuration ######
19
19
20
20
# sudo is required
21
-
printf"\e[1mThis script needs sudo privileges. You will also be promped to enter mysql credentials for each database you export unless you have a .my.cnf file in place. See README.md file for more information.\e[0m\n"
22
-
if [ $EUID!= 0 ];then
23
-
sudo "$0""$@"
24
-
exit$?
21
+
if [[ $UID!= 0 ]];then
22
+
printf"\e[1mThis script needs sudo privileges. You will also be promped to enter mysql credentials for each database you export unless you have a .my.cnf file in place. See README.md file for more information.\e[0m\n"
23
+
printf"sudo $0$*"
24
+
exit1
25
25
fi
26
26
27
27
printf"%b""\e[1mChecking for required package: pv\e[0m\n"
0 commit comments