File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed
Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 6060
6161# Set Purge to false in roundcube config - https://goo.gl/3Nja3u
6262if [ -f /etc/roundcube/config.inc.php ]; then
63- sed " s/deletion'] = 'Purge'/deletion'] = false/g" /etc/roundcube/config.inc.php
64- elif [ -f /etc/roundcube/main.inc.php ]
65- sed " s/deletion'] = 'Purge'/deletion'] = false/g" /etc/roundcube/main.inc.php
63+ sed -i " s/deletion'] = 'Purge'/deletion'] = false/g" /etc/roundcube/config.inc.php
64+ fi
65+ if [ -f /etc/roundcube/main.inc.php ]; then
66+ sed -i " s/deletion'] = 'Purge'/deletion'] = false/g" /etc/roundcube/main.inc.php
6667fi
6768
6869# Copy default "Success" page for unassigned hosts
69- cp -rf $hestiacp /templates/web/unassigned/* /var/www/
70+ cp -rf /usr/local/hestia/install/ubuntu/18.04 /templates/web/unassigned/* /var/www/
7071
7172# Move clamav to proper location - https://goo.gl/zNuM11
72- if [ -d /usr/local/web/edit/server/clamav-daemon ]; then
73- mv /usr/local/web/edit/server/clamd mv /usr/local/web/edit/server/clamav-daemon
74- fi
73+ if [ ! -d /usr/local/hestia /web/edit/server/clamav-daemon ]; then
74+ mv /usr/local/hestia/ web/edit/server/clamd /usr/local/web/edit/server/clamav-daemon
75+ fi
Original file line number Diff line number Diff line change 7474 </ tr >
7575 < tr >
7676 < td >
77- < label > < input type ="checkbox " class ="vst-checkbox " name ="v_twofa " < ?php if($v_twofa == 'yes' ) echo "checked=yes" ?> onclick="App.Actions.WEB.toggle_twofa(this)"> < ?php print __('Enable 2FA');?> </ label >
78- < ?php if( $v_twofa == 'yes' ) { ?>
77+ < label > < input type ="checkbox " class ="vst-checkbox " name ="v_twofa " < ?php if(!empty( $v_twofa) ) echo "checked=yes" ?> onclick="App.Actions.WEB.toggle_twofa(this)"> < ?php print __('Enable 2FA');?> </ label >
78+ < ?php if (!empty( $v_twofa) ) { ?>
7979 < p > < ?php echo __('Please scan the code below in your 2FA application:'); ?> </ p >
8080 < img src ="<?php echo $v_qrcode; ?> ">
8181 < ?php } ?>
You can’t perform that action at this time.
0 commit comments