manu-sapiens commited on
Commit
1388484
·
1 Parent(s): 9f0b093

trying to chown the symlink, which was found to be the reason FETCH failed

Browse files
Files changed (2) hide show
  1. myNodeServer.js +1 -1
  2. omnitool_start.sh +8 -6
myNodeServer.js CHANGED
@@ -3,7 +3,7 @@
3
  * All rights reserved.
4
  */
5
  //@ts-check
6
- const VERSION = '0.6.0.hf.009';
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.009b';
7
 
8
  const express = require('express');
9
  const http = require('http');
omnitool_start.sh CHANGED
@@ -11,14 +11,16 @@ if [ -d "/data" ]; then
11
  echo "$(ls -l /data)"
12
  echo "$(ls -l /data/files/file-import)"
13
 
14
- ###echo "--- CREATING the SYMLINK to /DATA ---"
15
- ###if [ -d "/app/omnitool/packages/omni-server/data.local" ]; then
16
- ### rm -rf /app/omnitool/packages/omni-server/data.local
17
- ###fi
18
 
19
  # Create the symlink
20
- ###echo "--- Create the symlink ---"
21
- ###ln -s /data /app/omnitool/packages/omni-server/data.local
 
 
22
  else
23
  echo "--- NO persistent /DATA DETECTED. You can add 20Gig of persistent storage as a paid option to Hugging Face"
24
  fi
 
11
  echo "$(ls -l /data)"
12
  echo "$(ls -l /data/files/file-import)"
13
 
14
+ echo "--- CREATING the SYMLINK to /DATA ---"
15
+ if [ -d "/app/omnitool/packages/omni-server/data.local" ]; then
16
+ rm -rf /app/omnitool/packages/omni-server/data.local
17
+ fi
18
 
19
  # Create the symlink
20
+ echo "--- Create the symlink ---"
21
+ ln -s /data /app/omnitool/packages/omni-server/data.local
22
+ chown -Rh node /app/omnitool/packages/omni-server/data.local
23
+ chown -Rh node /data
24
  else
25
  echo "--- NO persistent /DATA DETECTED. You can add 20Gig of persistent storage as a paid option to Hugging Face"
26
  fi