mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
new path for roundcube database
This commit is contained in:
parent
451de9de96
commit
9b5ed17d3c
1 changed files with 5 additions and 1 deletions
|
@ -776,7 +776,11 @@ r="$(gen_pass)"
|
|||
mysql -e "CREATE DATABASE roundcube"
|
||||
mysql -e "GRANT ALL ON roundcube.* TO roundcube@localhost IDENTIFIED BY '$r'"
|
||||
sed -i "s/%password%/$r/g" /etc/roundcubemail/db.inc.php
|
||||
mysql roundcube < /usr/share/doc/roundcubemail-*/SQL/mysql.initial.sql
|
||||
if [ -e "/usr/share/roundcubemail/SQL/mysql.initial.sql" ]; then
|
||||
mysql roundcube < /usr/share/roundcubemail/SQL/mysql.initial.sql
|
||||
else
|
||||
mysql roundcube < /usr/share/doc/roundcubemail-*/SQL/mysql.initial.sql
|
||||
fi
|
||||
|
||||
# Adding admin user
|
||||
if [ ! -z "$(grep ^admin: /etc/passwd)" ] && [ "$force" = 'yes' ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue