summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@vps-18a7a2b7.vps.ovh.ca>2023-05-23 21:55:59 -0400
committerroot <root@vps-18a7a2b7.vps.ovh.ca>2023-05-23 21:55:59 -0400
commitdae155afd1dd2bed4d1bab1f6137b27d4a767d54 (patch)
tree3803b3ae7e9d81d1cb24e58b46deadd08e3f97a8
parent9bb1cf6656db926d4f22043b4bf689ff809cd39d (diff)
improve readability
-rwxr-xr-xwordpress/wordpress-config-info9
1 files changed, 8 insertions, 1 deletions
diff --git a/wordpress/wordpress-config-info b/wordpress/wordpress-config-info
index 4438995..e51175d 100755
--- a/wordpress/wordpress-config-info
+++ b/wordpress/wordpress-config-info
@@ -13,12 +13,19 @@ wp_table_prefix_get()
13 13
14find_wp_config() 14find_wp_config()
15{ 15{
16 # If input contains a slash then it is an absolute path.
17 # Otherwise it is a subdirectory or subvolume of <file:///srv>.
16 case "$1" in 18 case "$1" in
17 */*) ;; 19 */*) ;;
18 *) set -- /srv/"$1" ;; 20 *) set -- /srv/"$1" ;;
19 esac 21 esac
20 22
21 for wp_config in "$1" "$1"/wp-config.php "$1"/wordpress/wp-config.php "$1"/public_html/wp-config.php "$1"/public_html/wordpress/wp-config.php 23 for wp_config in \
24 "$1" \
25 "$1"/wp-config.php \
26 "$1"/wordpress/wp-config.php \
27 "$1"/public_html/wp-config.php \
28 "$1"/public_html/wordpress/wp-config.php
22 do 29 do
23 if [ -f "$wp_config" ] 30 if [ -f "$wp_config" ]
24 then 31 then