Fix errors in installing plugins 'contextmenu' and 'markasjunk2'.

This commit is contained in:
Christoph 2017-12-27 04:11:40 +01:00
parent dedbbfb707
commit 77e1f893e3

View File

@ -2234,7 +2234,7 @@ _plugin="contextmenu"
add_plugin_arr+=("$_plugin") add_plugin_arr+=("$_plugin")
echo -e "\n\t\033[32mPlugin '$_plugin'\033[m" echo -e "\n\t\033[32mPlugin '$_plugin'\033[m"
echononl "\tDownload Pluging '$_plugin'.." echononl "\tDownload Pluging '$_plugin'.."
wget -O ${WEBSITE_BASEDIR}/Roundcube-Plugin-Context-Menu-master.zip \ wget -O ${WEBSITE_BASEDIR}/roundcube-contextmenu-master.zip \
https://github.com/JohnDoh/Roundcube-Plugin-Context-Menu/archive/master.zip > $log_file 2>&1 https://github.com/JohnDoh/Roundcube-Plugin-Context-Menu/archive/master.zip > $log_file 2>&1
if [[ $? -eq 0 ]] ; then if [[ $? -eq 0 ]] ; then
echo_ok echo_ok
@ -2245,7 +2245,7 @@ fi
echononl "\tUnpack archiv into Plugin Folder" echononl "\tUnpack archiv into Plugin Folder"
unzip -d ${WEBSITE_BASEDIR}/roundcubemail-${ROUNDCUBE_VERSION}/plugins/ \ unzip -d ${WEBSITE_BASEDIR}/roundcubemail-${ROUNDCUBE_VERSION}/plugins/ \
${WEBSITE_BASEDIR}/Roundcube-Plugin-Context-Menu-master.zip > $log_file 2>&1 ${WEBSITE_BASEDIR}/roundcube-contextmenu-master.zip > $log_file 2>&1
if [[ $? -eq 0 ]] ; then if [[ $? -eq 0 ]] ; then
echo_ok echo_ok
else else
@ -2253,7 +2253,7 @@ else
error "$(cat $log_file)" error "$(cat $log_file)"
fi fi
echononl "\tCeate Symlink '$_plugin' in plugin folder.." echononl "\tCeate Symlink '$_plugin' in plugin folder.."
ln -s Roundcube-Plugin-Context-Menu-master \ ln -s roundcube-contextmenu-master \
${WEBSITE_BASEDIR}/roundcubemail-${ROUNDCUBE_VERSION}/plugins/${_plugin} > $log_file 2>&1 ${WEBSITE_BASEDIR}/roundcubemail-${ROUNDCUBE_VERSION}/plugins/${_plugin} > $log_file 2>&1
if [[ $? -eq 0 ]] ; then if [[ $? -eq 0 ]] ; then
echo_ok echo_ok
@ -2403,7 +2403,7 @@ _plugin="markasjunk2"
add_plugin_arr+=("$_plugin") add_plugin_arr+=("$_plugin")
echo -e "\n\t\033[32mPlugin '$_plugin'\033[m" echo -e "\n\t\033[32mPlugin '$_plugin'\033[m"
echononl "\tDownload Pluging '$_plugin'.." echononl "\tDownload Pluging '$_plugin'.."
wget -O ${WEBSITE_BASEDIR}/Roundcube-Plugin-Mark-as-Junk-2-master.zip \ wget -O ${WEBSITE_BASEDIR}/roundcube-markasjunk2-master.zip \
https://github.com/JohnDoh/Roundcube-Plugin-Mark-as-Junk-2/archive/master.zip > $log_file 2>&1 https://github.com/JohnDoh/Roundcube-Plugin-Mark-as-Junk-2/archive/master.zip > $log_file 2>&1
if [[ $? -eq 0 ]] ; then if [[ $? -eq 0 ]] ; then
echo_ok echo_ok
@ -2414,7 +2414,7 @@ fi
echononl "\tUnpack archiv into Plugin Folder" echononl "\tUnpack archiv into Plugin Folder"
unzip -d ${WEBSITE_BASEDIR}/roundcubemail-${ROUNDCUBE_VERSION}/plugins/ \ unzip -d ${WEBSITE_BASEDIR}/roundcubemail-${ROUNDCUBE_VERSION}/plugins/ \
${WEBSITE_BASEDIR}/Roundcube-Plugin-Mark-as-Junk-2-master > $log_file 2>&1 ${WEBSITE_BASEDIR}/roundcube-markasjunk2-master.zip > $log_file 2>&1
if [[ $? -eq 0 ]] ; then if [[ $? -eq 0 ]] ; then
echo_ok echo_ok
else else
@ -2422,7 +2422,7 @@ else
error "$(cat $log_file)" error "$(cat $log_file)"
fi fi
echononl "\tCeate Symlink '$_plugin' in plugin folder.." echononl "\tCeate Symlink '$_plugin' in plugin folder.."
ln -s Roundcube-Plugin-Mark-as-Junk-2-master \ ln -s roundcube-markasjunk2-master \
${WEBSITE_BASEDIR}/roundcubemail-${ROUNDCUBE_VERSION}/plugins/${_plugin} > $log_file 2>&1 ${WEBSITE_BASEDIR}/roundcubemail-${ROUNDCUBE_VERSION}/plugins/${_plugin} > $log_file 2>&1
if [[ $? -eq 0 ]] ; then if [[ $? -eq 0 ]] ; then
echo_ok echo_ok