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

Remove unnecessary history.log file created due to bug

Kristan Kenney 6 лет назад
Родитель
Сommit
b83da9d08e
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      install/upgrade/versions/latest.sh

+ 5 - 0
install/upgrade/versions/latest.sh

@@ -50,3 +50,8 @@ if [ -e "/etc/clamav/clamd.conf" ]; then
         sed -i '/DetectBrokenExecutables/d' /etc/clamav/clamd.conf
     fi
 fi
+
+# Remove errornous history.log file created by certain builds due to bug in v-restart-system
+if [ -e $HESTIA/data/users/history.log ]; then
+    rm -f $HESTIA/data/users/history.log
+fi