Explorar el Código

some update about logs

crocandr hace 6 años
padre
commit
d129e06794
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      files/start.sh

+ 1 - 1
files/start.sh

@@ -19,4 +19,4 @@ fi
 $BASE_DIR/vpnserver start
 
 # something daemon like stuff
-tail -f $BASE_DIR/server_log/*
+[ $( ls -1 $BASE_DIR/server_log/* | wc -l ) -gt 0 ] && { tail -f $BASE_DIR/server_log/*; } || { echo "sorry, log file not found"; tail -f /dev/null; }