Skip to content

Commit c8d5e32

Browse files
committed
Updating update-debian8-v16-to-v17.sh
1 parent 49e24a2 commit c8d5e32

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

upd/update-debian8-v16-to-v17.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,22 @@ servername=$(hostname -f)
1111

1212
apt-get update > /dev/null 2>&1
1313

14+
15+
# PATH fix
16+
if [ $( grep -ic "VESTA" /etc/profile.d/vesta.sh ) -eq 0 ]; then
17+
echo "export VESTA='$VESTA'" > /etc/profile.d/vesta.sh
18+
fi
19+
if [ $( grep -ic "vesta" /root/.bash_profile ) -eq 0 ]; then
20+
echo 'PATH=$PATH:'$VESTA'/bin' >> /root/.bash_profile
21+
fi
22+
23+
24+
# Linking /var/log/vesta
25+
if [ ! -L "/var/log/vesta" ]; then
26+
ln -s $VESTA/log /var/log/vesta
27+
fi
28+
29+
1430
if [ -f "/etc/roundcube/plugins/password/config.inc.php" ]; then
1531

1632
# Roundcube Vesta password driver - changing password_vesta_host (in config) to server hostname

0 commit comments

Comments
 (0)