Просмотр исходного кода

Updating update-debian8-v16-to-v17.sh

dpeca 9 лет назад
Родитель
Сommit
c8d5e32c7e
1 измененных файлов с 16 добавлено и 0 удалено
  1. 16 0
      upd/update-debian8-v16-to-v17.sh

+ 16 - 0
upd/update-debian8-v16-to-v17.sh

@@ -11,6 +11,22 @@ servername=$(hostname -f)
 
 apt-get update > /dev/null 2>&1
 
+
+# PATH fix
+if [ $( grep -ic "VESTA" /etc/profile.d/vesta.sh ) -eq 0 ]; then
+    echo "export VESTA='$VESTA'" > /etc/profile.d/vesta.sh
+fi
+if [ $( grep -ic "vesta" /root/.bash_profile ) -eq 0 ]; then
+    echo 'PATH=$PATH:'$VESTA'/bin' >> /root/.bash_profile
+fi
+
+
+# Linking /var/log/vesta
+if [ ! -L "/var/log/vesta" ]; then
+    ln -s $VESTA/log /var/log/vesta
+fi
+
+
 if [ -f "/etc/roundcube/plugins/password/config.inc.php" ]; then
 
     # Roundcube Vesta password driver - changing password_vesta_host (in config) to server hostname