Moving get_database_name_without_user_prefix() function to db.sh

This commit is contained in:
myvesta 2020-07-18 00:04:26 +02:00 committed by GitHub
commit e263e64e39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}
}