Bob Mottram 7 gadus atpakaļ
vecāks
revīzija
30eca6b2ad
1 mainītis faili ar 10 papildinājumiem un 10 dzēšanām
  1. 10
    10
      src/freedombone-app-scuttlebot

+ 10
- 10
src/freedombone-app-scuttlebot Parādīt failu

@@ -259,14 +259,14 @@ function git_ssb_script {
259 259
 
260 260
 function scuttlebot_git_setup {
261 261
     if [[ "$1" == "mesh" ]]; then
262
-        if [ ! -d "$rootdir/root/.npm-global/node_modules/git-ssb/node_modules/git-ssb-web/highlight" ]; then
263
-            mkdir "$rootdir/root/.npm-global/node_modules/git-ssb/node_modules/git-ssb-web/highlight"
262
+        if [ ! -d "$rootdir/root/.npm-global/node_modules/git-ssb-web/highlight" ]; then
263
+            mkdir "$rootdir/root/.npm-global/node_modules/git-ssb-web/highlight"
264 264
         fi
265
-        if [ ! -f "$rootdir/root/.npm-global/node_modules/git-ssb/node_modules/highlight.js/styles/foundation.css" ]; then
265
+        if [ ! -f "$rootdir/root/.npm-global/highlight.js/styles/foundation.css" ]; then
266 266
             echo $'Could not find foundation.css'
267 267
             exit 347687245
268 268
         fi
269
-        cp "$rootdir/root/.npm-global/node_modules/git-ssb/node_modules/highlight.js/styles/foundation.css" "$rootdir/root/.npm-global/node_modules/git-ssb/node_modules/git-ssb-web/highlight/foundation.css"
269
+        cp "$rootdir/root/.npm-global/node_modules/highlight.js/styles/foundation.css" "$rootdir/root/.npm-global/node_modules/git-ssb-web/highlight/foundation.css"
270 270
 
271 271
         git_ssb_nginx_site=$rootdir/etc/nginx/sites-available/git_ssb
272 272
         { echo 'server {';
@@ -284,14 +284,14 @@ function scuttlebot_git_setup {
284 284
             exit 7357225
285 285
         fi
286 286
 
287
-        if [ ! -d /root/.npm-global/node_modules/git-ssb/node_modules/git-ssb-web/highlight ]; then
288
-            mkdir /root/.npm-global/node_modules/git-ssb/node_modules/git-ssb-web/highlight
287
+        if [ ! -d /root/.npm-global/node_modules/git-ssb-web/highlight ]; then
288
+            mkdir /root/.npm-global/node_modules/git-ssb-web/highlight
289 289
         fi
290
-        if [ ! -f /root/.npm-global/node_modules/git-ssb/node_modules/highlight.js/styles/foundation.css ]; then
290
+        if [ ! -f /root/.npm-global/node_modules/highlight.js/styles/foundation.css ]; then
291 291
             echo $'Could not find foundation.css'
292 292
             exit 347687245
293 293
         fi
294
-        cp /root/.npm-global/node_modules/git-ssb/node_modules/highlight.js/styles/foundation.css /root/.npm-global/node_modules/git-ssb/node_modules/git-ssb-web/highlight/foundation.css
294
+        cp /root/.npm-global/node_modules/highlight.js/styles/foundation.css /root/.npm-global/node_modules/git-ssb-web/highlight/foundation.css
295 295
 
296 296
         git_ssb_nginx_site=/etc/nginx/sites-available/${SCUTTLEBOT_DOMAIN_NAME}
297 297
         function_check nginx_http_redirect
@@ -313,7 +313,7 @@ function scuttlebot_git_setup {
313 313
     fi
314 314
 
315 315
     { echo '';
316
-      echo '  root /root/.npm-global/node_modules/git-ssb/node_modules/git-ssb-web;';
316
+      echo '  root /root/.npm-global/node_modules/git-ssb-web;';
317 317
       echo '';
318 318
       echo '  location = / {';
319 319
       echo "    proxy_pass http://localhost:${GIT_SSB_PORT};";
@@ -339,7 +339,7 @@ function scuttlebot_git_setup {
339 339
           echo '  add_header X-Content-Type-Options nosniff;';
340 340
           echo '  add_header X-Frame-Options SAMEORIGIN;';
341 341
           echo '';
342
-          echo '  root /root/.npm-global/node_modules/git-ssb/node_modules/git-ssb-web;';
342
+          echo '  root /root/.npm-global/node_modules/git-ssb-web;';
343 343
           echo '';
344 344
           echo '  location = / {';
345 345
           echo "    proxy_pass http://localhost:${GIT_SSB_PORT};";