mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 05:14:10 -07:00
Moving get_database_name_without_user_prefix() function to db.sh
This commit is contained in:
parent
ff053aacc9
commit
e263e64e39
1 changed files with 0 additions and 8 deletions
|
@ -1057,11 +1057,3 @@ 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