Maniack Crudelis
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
scripts/change_url
|
|
|
@ -109,6 +109,7 @@ fi |
|
|
|
|
|
|
|
# Get the database table prefix |
|
|
|
db_prefix=$(grep '^$table_prefix' "$final_path/wp-config.php" | sed "s/.*'\(.*\)'.*/\1/" ) |
|
|
|
ynh_debug --message="db_prefix=$db_prefix" |
|
|
|
|
|
|
|
ynh_mysql_execute_as_root --sql="UPDATE ${db_prefix}options SET option_value='$new_domain$new_path' WHERE option_name='siteurl'" --database=$app |
|
|
|
ynh_mysql_execute_as_root --sql="UPDATE ${db_prefix}options SET option_value='$new_domain$new_path' WHERE option_name='home'" --database=$app |
|
|
|
|