mirror of
https://github.com/DanWin/mail-hosting.git
synced 2024-09-07 19:11:11 +00:00
Install quota plugin
This commit is contained in:
parent
bef733240f
commit
527b9e075f
|
@ -72,6 +72,15 @@ else
|
|||
git pull
|
||||
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
|
||||
mkdir -p /var/www/mail/www/snappymail
|
||||
cd /var/www/mail/www/snappymail
|
||||
|
|
25
squirrelmail_plugin_hooks.php
Normal file
25
squirrelmail_plugin_hooks.php
Normal 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';
|
||||
|
||||
|
Loading…
Reference in a new issue