|
|
|
|
259
|
|
259
|
|
260
|
function scuttlebot_git_setup {
|
260
|
function scuttlebot_git_setup {
|
261
|
if [[ "$1" == "mesh" ]]; then
|
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
|
fi
|
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
|
echo $'Could not find foundation.css'
|
266
|
echo $'Could not find foundation.css'
|
267
|
exit 347687245
|
267
|
exit 347687245
|
268
|
fi
|
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
|
git_ssb_nginx_site=$rootdir/etc/nginx/sites-available/git_ssb
|
271
|
git_ssb_nginx_site=$rootdir/etc/nginx/sites-available/git_ssb
|
272
|
{ echo 'server {';
|
272
|
{ echo 'server {';
|
|
|
|
|
284
|
exit 7357225
|
284
|
exit 7357225
|
285
|
fi
|
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
|
fi
|
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
|
echo $'Could not find foundation.css'
|
291
|
echo $'Could not find foundation.css'
|
292
|
exit 347687245
|
292
|
exit 347687245
|
293
|
fi
|
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
|
git_ssb_nginx_site=/etc/nginx/sites-available/${SCUTTLEBOT_DOMAIN_NAME}
|
296
|
git_ssb_nginx_site=/etc/nginx/sites-available/${SCUTTLEBOT_DOMAIN_NAME}
|
297
|
function_check nginx_http_redirect
|
297
|
function_check nginx_http_redirect
|
|
|
|
|
313
|
fi
|
313
|
fi
|
314
|
|
314
|
|
315
|
{ echo '';
|
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
|
echo '';
|
317
|
echo '';
|
318
|
echo ' location = / {';
|
318
|
echo ' location = / {';
|
319
|
echo " proxy_pass http://localhost:${GIT_SSB_PORT};";
|
319
|
echo " proxy_pass http://localhost:${GIT_SSB_PORT};";
|
|
|
|
|
339
|
echo ' add_header X-Content-Type-Options nosniff;';
|
339
|
echo ' add_header X-Content-Type-Options nosniff;';
|
340
|
echo ' add_header X-Frame-Options SAMEORIGIN;';
|
340
|
echo ' add_header X-Frame-Options SAMEORIGIN;';
|
341
|
echo '';
|
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
|
echo '';
|
343
|
echo '';
|
344
|
echo ' location = / {';
|
344
|
echo ' location = / {';
|
345
|
echo " proxy_pass http://localhost:${GIT_SSB_PORT};";
|
345
|
echo " proxy_pass http://localhost:${GIT_SSB_PORT};";
|