Skip to content

Commit 014c203

Browse files
committed
Small fixes to installer and 2fa authentication.
1 parent 4957da8 commit 014c203

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

install/upgrade/0.9.8-28.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,16 @@ fi
6060

6161
# Set Purge to false in roundcube config - https://goo.gl/3Nja3u
6262
if [ -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
6667
fi
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

web/templates/admin/edit_user.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@
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 } ?>

0 commit comments

Comments
 (0)