lib directory

This commit is contained in:
Bob Mottram 2018-04-13 17:38:40 +01:00
parent 30eca6b2ad
commit 3c342619d5
2 changed files with 11 additions and 11 deletions

View File

@ -259,14 +259,14 @@ function git_ssb_script {
function scuttlebot_git_setup { function scuttlebot_git_setup {
if [[ "$1" == "mesh" ]]; then if [[ "$1" == "mesh" ]]; then
if [ ! -d "$rootdir/root/.npm-global/node_modules/git-ssb-web/highlight" ]; then if [ ! -d "$rootdir/root/.npm-global/lib/node_modules/git-ssb-web/highlight" ]; then
mkdir "$rootdir/root/.npm-global/node_modules/git-ssb-web/highlight" mkdir "$rootdir/root/.npm-global/lib/node_modules/git-ssb-web/highlight"
fi fi
if [ ! -f "$rootdir/root/.npm-global/highlight.js/styles/foundation.css" ]; then if [ ! -f "$rootdir/root/.npm-global/highlight.js/styles/foundation.css" ]; then
echo $'Could not find foundation.css' echo $'Could not find foundation.css'
exit 347687245 exit 347687245
fi fi
cp "$rootdir/root/.npm-global/node_modules/highlight.js/styles/foundation.css" "$rootdir/root/.npm-global/node_modules/git-ssb-web/highlight/foundation.css" cp "$rootdir/root/.npm-global/lib/node_modules/highlight.js/styles/foundation.css" "$rootdir/root/.npm-global/lib/node_modules/git-ssb-web/highlight/foundation.css"
git_ssb_nginx_site=$rootdir/etc/nginx/sites-available/git_ssb git_ssb_nginx_site=$rootdir/etc/nginx/sites-available/git_ssb
{ echo 'server {'; { echo 'server {';
@ -284,14 +284,14 @@ function scuttlebot_git_setup {
exit 7357225 exit 7357225
fi fi
if [ ! -d /root/.npm-global/node_modules/git-ssb-web/highlight ]; then if [ ! -d /root/.npm-global/lib/node_modules/git-ssb-web/highlight ]; then
mkdir /root/.npm-global/node_modules/git-ssb-web/highlight mkdir /root/.npm-global/lib/node_modules/git-ssb-web/highlight
fi fi
if [ ! -f /root/.npm-global/node_modules/highlight.js/styles/foundation.css ]; then if [ ! -f /root/.npm-global/lib/node_modules/highlight.js/styles/foundation.css ]; then
echo $'Could not find foundation.css' echo $'Could not find foundation.css'
exit 347687245 exit 347687245
fi fi
cp /root/.npm-global/node_modules/highlight.js/styles/foundation.css /root/.npm-global/node_modules/git-ssb-web/highlight/foundation.css cp /root/.npm-global/lib/node_modules/highlight.js/styles/foundation.css /root/.npm-global/lib/node_modules/git-ssb-web/highlight/foundation.css
git_ssb_nginx_site=/etc/nginx/sites-available/${SCUTTLEBOT_DOMAIN_NAME} git_ssb_nginx_site=/etc/nginx/sites-available/${SCUTTLEBOT_DOMAIN_NAME}
function_check nginx_http_redirect function_check nginx_http_redirect
@ -313,7 +313,7 @@ function scuttlebot_git_setup {
fi fi
{ echo ''; { echo '';
echo ' root /root/.npm-global/node_modules/git-ssb-web;'; echo ' root /root/.npm-global/lib/node_modules/git-ssb-web;';
echo ''; echo '';
echo ' location = / {'; echo ' location = / {';
echo " proxy_pass http://localhost:${GIT_SSB_PORT};"; echo " proxy_pass http://localhost:${GIT_SSB_PORT};";
@ -339,7 +339,7 @@ function scuttlebot_git_setup {
echo ' add_header X-Content-Type-Options nosniff;'; echo ' add_header X-Content-Type-Options nosniff;';
echo ' add_header X-Frame-Options SAMEORIGIN;'; echo ' add_header X-Frame-Options SAMEORIGIN;';
echo ''; echo '';
echo ' root /root/.npm-global/node_modules/git-ssb-web;'; echo ' root /root/.npm-global/lib/node_modules/git-ssb-web;';
echo ''; echo '';
echo ' location = / {'; echo ' location = / {';
echo " proxy_pass http://localhost:${GIT_SSB_PORT};"; echo " proxy_pass http://localhost:${GIT_SSB_PORT};";

View File

@ -122,8 +122,8 @@ function install_tripwire {
if ! grep -q '!/usr/local/lib/node_modules' /etc/tripwire/twpol.txt; then if ! grep -q '!/usr/local/lib/node_modules' /etc/tripwire/twpol.txt; then
sed -i '\|/etc\t\t->.*|a\ !/usr/local/lib/node_modules ;' /etc/tripwire/twpol.txt sed -i '\|/etc\t\t->.*|a\ !/usr/local/lib/node_modules ;' /etc/tripwire/twpol.txt
fi fi
if ! grep -q '!/root/.npm-global/node_modules' /etc/tripwire/twpol.txt; then if ! grep -q '!/root/.npm-global/lib/node_modules' /etc/tripwire/twpol.txt; then
sed -i '\|/etc\t\t->.*|a\ !/root/.npm-global/node_modules ;' /etc/tripwire/twpol.txt sed -i '\|/etc\t\t->.*|a\ !/root/.npm-global/lib/node_modules ;' /etc/tripwire/twpol.txt
fi fi
# Events here are likely due to USB HRNG activity # Events here are likely due to USB HRNG activity
if ! grep -q '!/dev/char' /etc/tripwire/twpol.txt; then if ! grep -q '!/dev/char' /etc/tripwire/twpol.txt; then