1
0
forked from pool/roundcubemail
Wolfgang Rosenauer 2014-03-08 17:20:10 +00:00 committed by Git OBS Bridge
parent 88b40b0f66
commit 9c15a4a585
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Mar 7 11:24:50 UTC 2014 - aj@ajaissle.de
- Use macros for DES string replacement
-------------------------------------------------------------------
Mon Feb 24 14:02:07 UTC 2014 - aj@ajaissle.de

View File

@ -201,7 +201,10 @@ function makedesstr () {
done
echo $str
}
sed -i "s/rcmail-\!24ByteDESkey\*Str/`makedesstr`/" /etc/roundcubemail/main.inc.php || : &> /dev/null
if [ -f %{roundcubeconfigpath}/main.inc.php ]; then
sed -i "s/rcmail-\!24ByteDESkey\*Str/`makedesstr`/" %{roundcubeconfigpath}/main.inc.php || : &> /dev/null
fi
sed -i "s/rcmail-\!24ByteDESkey\*Str/`makedesstr`/" %{roundcubeconfigpath}/main.inc.php.dist || : &> /dev/null
# enable apache required apache modules
if [ -x /usr/sbin/a2enmod ]; then