Install quota plugin

This commit is contained in:
Daniel Winzen 2024-06-07 17:58:15 +02:00
parent bef733240f
commit 527b9e075f
No known key found for this signature in database
GPG key ID: 222FCC3F35C41077
2 changed files with 34 additions and 0 deletions

View file

@ -72,6 +72,15 @@ else
git pull git pull
fi fi
if [ ! -e /var/www/mail/www/squirrelmail/plugins/check_quota/ ]; then
cd /var/www/mail/www/squirrelmail/plugins/
wget https://www.squirrelmail.org/plugins/check_quota-2.2-1.4.0.tar.gz
tar -zxf check_quota-2.2-1.4.0.tar.gz
rm check_quota-2.2-1.4.0.tar.gz
cd $workingdir
cp squirrelmail_plugin_hooks.php /var/www/mail/www/squirrelmail/config/plugin_hooks.php
fi
# install snappymail # install snappymail
mkdir -p /var/www/mail/www/snappymail mkdir -p /var/www/mail/www/snappymail
cd /var/www/mail/www/snappymail cd /var/www/mail/www/snappymail

View file

@ -0,0 +1,25 @@
<?php
/**
* SquirrelMail Plugin Hook Registration File
* Auto-generated using the configure script, conf.pl
*/
global $squirrelmail_plugin_hooks;
$squirrelmail_plugin_hooks['left_main_before']['check_quota']
= 'check_quota_graph_before_do';
$squirrelmail_plugin_hooks['left_main_after']['check_quota']
= 'check_quota_graph_after_do';
$squirrelmail_plugin_hooks['right_main_after_header']['check_quota']
= 'check_quota_motd_do';
$squirrelmail_plugin_hooks['template_construct_left_main.tpl']['check_quota']
= 'check_quota_graph_do';
$squirrelmail_plugin_hooks['template_construct_motd.tpl']['check_quota']
= 'check_quota_motd_do';
$squirrelmail_plugin_hooks['optpage_register_block']['check_quota']
= 'check_quota_optpage_register_block_do';
$squirrelmail_plugin_hooks['configtest']['check_quota']
= 'check_quota_check_configuration_do';