get_database_name_without_user_prefix function

This commit is contained in:
myvesta 2020-07-12 21:00:23 +02:00 committed by GitHub
parent 9ac43d1f8f
commit 1ddba4e853
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1057,3 +1057,11 @@ replace_php_config_value() {
sed -i "s|=$1$|=$2|g" $3 sed -i "s|=$1$|=$2|g" $3
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}
}