diff options
Diffstat (limited to 'wordpress/wordpress-config-info')
-rwxr-xr-x | wordpress/wordpress-config-info | 9 |
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 | ||
14 | find_wp_config() | 14 | find_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 |