mirror of
https://github.com/myvesta/vesta
synced 2025-07-05 20:41:53 -07:00
get_database_name_without_user_prefix function
This commit is contained in:
parent
9ac43d1f8f
commit
1ddba4e853
1 changed files with 8 additions and 0 deletions
|
@ -1057,3 +1057,11 @@ replace_php_config_value() {
|
|||
sed -i "s|=$1$|=$2|g" $3
|
||||
sed -i "s|= $1$|= $2|g" $3
|
||||
}
|
||||
|
||||
get_database_name_without_user_prefix() {
|
||||
user=$1
|
||||
db=$2
|
||||
user_len=${#user}
|
||||
user_len=$((user_len+1))
|
||||
echo ${db:user_len}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue