Преглед изворни кода

Fix #735 and #736 for centos

[root@home3 vesta]# v-add-letsencrypt-domain test test.com
/usr/local/vesta/bin/v-add-letsencrypt-user: regel 60: xxd: command not found
/usr/local/vesta/bin/v-add-letsencrypt-user: regel 64: xxd: command not found
Made I.T пре 9 година
родитељ
комит
f8a5cddf3e
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      src/rpm/specs/vesta.spec

+ 4 - 0
src/rpm/specs/vesta.spec

@@ -39,6 +39,10 @@ if [ $1 -ge 2 ]; then
     if [ -e /usr/local/vesta/upd/fix_sessions.sh ]; then
     if [ -e /usr/local/vesta/upd/fix_sessions.sh ]; then
         /usr/local/vesta/upd/fix_sessions.sh
         /usr/local/vesta/upd/fix_sessions.sh
     fi
     fi
+    xdd=$(which xxd)
+    if [ $? -gt 0 ]; then
+        yum install -y vim-common
+    fi
 fi
 fi
 %files
 %files
 %{_vestadir}
 %{_vestadir}