Skip to content

Commit cf1a732

Browse files
committed
Roundcube tinyMCE fix for Debian 8
1 parent 6bf6cbd commit cf1a732

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
506 KB
Binary file not shown.

install/vst-install-debian.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,6 +1089,28 @@ if [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then
10891089
if [ "$release" -eq 8 ]; then
10901090
mv -f /etc/roundcube/main.inc.php /etc/roundcube/config.inc.php
10911091
mv -f /etc/roundcube/db.inc.php /etc/roundcube/debian-db-roundcube.php
1092+
1093+
# RoundCube tinyMCE fix
1094+
tinymceFixArchiveURL=$vestacp/roundcube/roundcube-tinymce.tar.gz
1095+
tinymceParentFolder=/usr/share/roundcube/program/js
1096+
tinymceFolder=$tinymceParentFolder/tinymce
1097+
tinymceBadJS=$tinymceFolder/tiny_mce.js
1098+
tinymceFixArchive=$tinymceParentFolder/roundcube-tinymce.tar.gz
1099+
if [[ -L "$tinymceFolder" && -d "$tinymceFolder" ]]; then
1100+
if [ -f "$tinymceBadJS" ]; then
1101+
wget $tinymceFixArchiveURL -O $tinymceFixArchive
1102+
if [[ -f "$tinymceFixArchive" && -s "$tinymceFixArchive" ]]; then
1103+
rm $tinymceFolder
1104+
tar -xzf $tinymceFixArchive -C $tinymceParentFolder
1105+
rm $tinymceFixArchive
1106+
chown -R root:root $tinymceFolder
1107+
else
1108+
echo "File roundcube-tinymce.tar.gz is not downloaded, RoundCube tinyMCE fix is not applied"
1109+
rm $tinymceFixArchive
1110+
fi
1111+
fi
1112+
fi
1113+
10921114
fi
10931115
fi
10941116

0 commit comments

Comments
 (0)