fix sudo rights
This commit is contained in:
parent
3607ca1af6
commit
f3ee98e54c
4
mybashrc
4
mybashrc
|
@ -30,7 +30,7 @@ update_git_mybashrc() {
|
|||
}
|
||||
|
||||
EE_MYSQL_OPTIMIZATION() {
|
||||
|
||||
|
||||
if [ -f $HOME/.my.cnf ]; then
|
||||
/usr/bin/mysqlcheck -Aos --auto-repair
|
||||
elif [ -f /etc/psa/.psa.shadow ]; then
|
||||
|
@ -91,7 +91,7 @@ MAINTENANCE_APT() {
|
|||
CRED="${CSI}1;31m"
|
||||
CGREEN="${CSI}1;32m"
|
||||
|
||||
if [ "$(id -u)" = "0" ] && [ -n "$IS_SUDOERS" ]; then
|
||||
if [ "$(id -u)" = "0" ] || [ -n "$IS_SUDOERS" ]; then
|
||||
|
||||
echo -e "${CGREEN}#############################################${CEND}"
|
||||
echo -e ' APT UPDATE '
|
||||
|
|
Loading…
Reference in New Issue