From cef8bab19df579e2a66af9615f86a0f96d9728b3 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Tue, 2 Jan 2024 16:30:42 -0800 Subject: [PATCH] use bin/initdb.sh instead of manual db table insert --- install.sh | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/install.sh b/install.sh index 1ba9d87..06ebd83 100644 --- a/install.sh +++ b/install.sh @@ -63,16 +63,8 @@ sed -i "s|.*sauserprefs_db_dsnw.*|\$config['sauserprefs_db_dsnw'] = 'mysql://$db # create tmp files storage dir install --owner=www-data --group=www-data --mode=750 --directory /var/tmp/roundcube -# prefix roundcubemail mysql tables with rc_ -cp /srv/www/html/roundcube/SQL/mysql.initial.sql $installer_dir/rc.sql -tables=(`grep TABLE rc.sql |cut -d \\\` -f 2`) -for table in "${!tables[@]}" -do - table=${tables[$table]} - sed -i "s|\`$table\`|\`rc_$table\`|g" rc.sql -done # load roundcube database tables -mysql vmail < rc.sql +/srv/www/html/roundcube/bin/initdb.sh --dir=SQL # set permissions rm -r /srv/www/html/roundcube/installer/