Skip to content

Commit acd4558

Browse files
authored
Code cleanup
1 parent 6b55eb2 commit acd4558

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/functions/alias/alias-cache.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ clear_redis_cache() {
7777
restart_service() {
7878
local service_name=$1
7979
echo "Restarting ${service_name}"
80-
service ${service_name} restart || {
80+
service "${service_name}" restart || {
8181
echo "Error: Failed to restart ${service_name}"
8282
}
8383
}
@@ -86,7 +86,7 @@ restart_service() {
8686
restart_php_fpm() {
8787
local php_versions=("8.1" "8.2" "8.3" "8.4")
8888
for version in "${php_versions[@]}"; do
89-
if systemctl is-active --quiet php${version}-fpm; then
89+
if systemctl is-active --quiet "php${version}-fpm"; then
9090
restart_service "php${version}-fpm"
9191
return
9292
fi

scripts/functions/server-tools/analyze-tables.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ SQL="${SQL} ('information_schema','performance_schema','mysql','sys','innodb')"
3838
SQL="${SQL} AND engine IS NOT NULL"
3939

4040
# Create SQL Commands to run ANALYZE TABLE
41-
mariadb ${MYSQL_AUTH} -ANe"${SQL}" > "${RUN_SQL}"
41+
mariadb "${MYSQL_AUTH}" -ANe"${SQL}" > "${RUN_SQL}"
4242

4343
# Execute ANALYZE TABLE Commands
44-
mariadb ${MYSQL_AUTH} --table < "${RUN_SQL}" > "${RUN_LOG}" 2>&1
44+
mariadb "${MYSQL_AUTH}" --table < "${RUN_SQL}" > "${RUN_LOG}" 2>&1
4545

4646
# Ask user to acknowledge that the scan has completed before moving on
4747
echo ""

0 commit comments

Comments
 (0)