Compare commits

...

2 Commits

Author SHA1 Message Date
17f861165f * Thu Apr 10 2025 Jean-Philippe Pialasse <jpp@koozali.org> 1.6-10.sme
- fix login to roundcube after restore [SME: 12981]
2025-04-10 18:34:56 -04:00
1232b55c13 * Tue Apr 08 2025 Jean-Philippe Pialasse <jpp@koozali.org> 1.6-9.sme
- fix login to roundcube after restore [SME: 12981]
2025-04-08 23:21:55 -04:00
2 changed files with 14 additions and 14 deletions

View File

@ -3,23 +3,20 @@
my $user = $roundcube{DbUser} || 'roundcube';
my $pass = $roundcube{DbPassword} || 'changeme';
$OUT .= <<END
#! /bin/sh
if [ -d /var/lib/mysql/$db ]; then
#if you need to add plugins:
# /usr/bin/mysql $db < /usr/share/roundcubemail/plugins/calendar/drivers/database/SQL/mysql.initial.sql
# /usr/bin/mysql $db < /usr/share/roundcubemail/plugins/calendar/drivers/kolab/SQL/mysql.initial.sql
# /usr/bin/mysql $db < /usr/share/roundcubemail/plugins/tasklist/drivers/database/SQL/mysql.initial.sql
exit
fi
/usr/bin/mysql <<EOF
CREATE DATABASE $db DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
use $db;
source /usr/share/roundcubemail/SQL/mysql.initial.sql;
#!/bin/sh
/usr/bin/mariadb <<EOF
CREATE DATABASE IF NOT EXISTS $db DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
use mysql;
GRANT ALL PRIVILEGES ON $db.* TO $user\@localhost
IDENTIFIED BY '$pass';
flush privileges;
EOF
if [ ! -f /var/lib/mysql/$db/users.ibd ] ; then
cat /usr/share/roundcubemail/SQL/mysql.initial.sql | /usr/bin/mariadb $db
fi
exit 0
END
}

View File

@ -1,8 +1,8 @@
%define name smeserver-roundcube
%define version 1.6
%define release 8
%define release 10
Summary: smserver rpm to setup roundcube, an IMAP mail client
Summary: smeserver rpm to setup roundcube, an IMAP mail client
Name: %{name}
Version: %{version}
Release: %{release}%{?dist}
@ -85,6 +85,9 @@ fi
%attr(755,root,root) /usr/bin/rcplugin_update.sh
%changelog
* Thu Apr 10 2025 Jean-Philippe Pialasse <jpp@koozali.org> 1.6-10.sme
- fix login to roundcube after restore [SME: 12981]
* Sun Mar 30 2025 Jean-Philippe Pialasse <jpp@koozali.org> 1.6-8.sme
- remove service handling from post-upgrade event [SME: 12977]