Skip to content

Commit 9b5ed17

Browse files
committed
new path for roundcube database
1 parent 451de9d commit 9b5ed17

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

install/vst-install-rhel.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,11 @@ r="$(gen_pass)"
776776
mysql -e "CREATE DATABASE roundcube"
777777
mysql -e "GRANT ALL ON roundcube.* TO roundcube@localhost IDENTIFIED BY '$r'"
778778
sed -i "s/%password%/$r/g" /etc/roundcubemail/db.inc.php
779-
mysql roundcube < /usr/share/doc/roundcubemail-*/SQL/mysql.initial.sql
779+
if [ -e "/usr/share/roundcubemail/SQL/mysql.initial.sql" ]; then
780+
mysql roundcube < /usr/share/roundcubemail/SQL/mysql.initial.sql
781+
else
782+
mysql roundcube < /usr/share/doc/roundcubemail-*/SQL/mysql.initial.sql
783+
fi
780784

781785
# Adding admin user
782786
if [ ! -z "$(grep ^admin: /etc/passwd)" ] && [ "$force" = 'yes' ]; then

0 commit comments

Comments
 (0)