Przeglądaj źródła

some error checking added

crocandr 6 lat temu
rodzic
commit
ad4325d5e2
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      files/start.sh

+ 3 - 0
files/start.sh

@@ -2,6 +2,9 @@
 
 BASE_DIR="/opt/vpnserver"
 
+# config file check
+[ -f $BASE_DIR/vpn_server.config ] || { echo "Config is not a file! Check your docker settings."; exit 1; }
+
 # first start 
 if [ -s $BASE_DIR/vpn_server.config ]
 then