manu-sapiens commited on
Commit
f9cd89e
·
1 Parent(s): c61a51f

adding echo to track status of symlink

Browse files
Files changed (2) hide show
  1. hf_server.js +1 -1
  2. omnitool_init.sh +12 -5
hf_server.js CHANGED
@@ -3,7 +3,7 @@
3
  * All rights reserved.
4
  */
5
  //@ts-check
6
- const VERSION = '0.6.0.hf.013.a';
7
 
8
  const express = require('express');
9
  const http = require('http');
 
3
  * All rights reserved.
4
  */
5
  //@ts-check
6
+ const VERSION = '0.6.0.hf.013.b';
7
 
8
  const express = require('express');
9
  const http = require('http');
omnitool_init.sh CHANGED
@@ -1,12 +1,19 @@
1
  #!/bin/bash
2
  echo "[->] START "
3
 
4
- # echo "[->] CHECKING EXISTING /DATA "
5
- # if [ -d "/data" ]; then
6
- # echo "$(ls -l /data)"
 
 
 
 
 
 
 
 
 
7
 
8
- # if [ -L "./omnitool/packages/omni-server/data.local" ]; then
9
- # echo "[v] DATA.LOCAL symlink already present. Removing it."
10
  # rm -rf ./omnitool/packages/omni-server/data.local
11
  # fi
12
 
 
1
  #!/bin/bash
2
  echo "[->] START "
3
 
4
+ echo "[->] CHECKING EXISTING /DATA "
5
+ if [ -d "/data" ]; then
6
+ echo "$(ls -l /data)"
7
+ if [ -L "./omnitool/packages/omni-server/data.local" ]; then
8
+ echo "[<] DATA.LOCAL symlink present."
9
+ else
10
+ echo "[<] DATA.LOCAL symlink not present."
11
+ fi
12
+ else
13
+ echo "[v] NO persistent /DATA DETECTED. You can add 20Gig of persistent storage as a paid option to Hugging Face"
14
+ fi
15
+
16
 
 
 
17
  # rm -rf ./omnitool/packages/omni-server/data.local
18
  # fi
19