node_modules
This commit is contained in:
parent
cc4e595765
commit
8d8ec64bf6
|
@ -25,7 +25,7 @@ scuttlebutt() {
|
||||||
# Move node_modules with ssb-server (why do I have to do that?)
|
# Move node_modules with ssb-server (why do I have to do that?)
|
||||||
ssbSERVER=$(which ssb-server)
|
ssbSERVER=$(which ssb-server)
|
||||||
node_modules_path=$(echo $ssbSERVER | sed s/bin\\/ssb-server/lib/)
|
node_modules_path=$(echo $ssbSERVER | sed s/bin\\/ssb-server/lib/)
|
||||||
mv ~/.ssb_astroport/node_modules/* $node_modules_path/
|
mv ~/.ssb_astroport/node_modules/* $node_modules_path/node_modules/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# TEST ssb-server Install
|
# TEST ssb-server Install
|
||||||
|
@ -55,7 +55,10 @@ echo "
|
||||||
_|
|
_|
|
||||||
$nodename
|
$nodename
|
||||||
"
|
"
|
||||||
|
|
||||||
if [[ $extension == $nodename ]]; then
|
if [[ $extension == $nodename ]]; then
|
||||||
|
|
||||||
|
|
||||||
nodename=$nodename.home
|
nodename=$nodename.home
|
||||||
# LOCAL
|
# LOCAL
|
||||||
cat > ~/.ssb/config <<EOF
|
cat > ~/.ssb/config <<EOF
|
||||||
|
@ -81,8 +84,14 @@ while true; do
|
||||||
echo _! > ~/.zen/ssb.pid
|
echo _! > ~/.zen/ssb.pid
|
||||||
done
|
done
|
||||||
EOF
|
EOF
|
||||||
|
# REPLACE _ with $
|
||||||
|
sed -i s/_/\$/g ~/.zen/run-ssb_$nodename.sh
|
||||||
|
chmod 755 ~/.zen/run-ssb_$nodename.sh
|
||||||
|
ssb-server start &
|
||||||
|
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
else
|
|
||||||
|
|
||||||
# PUB
|
# PUB
|
||||||
cat > ~/.ssb/config <<EOF
|
cat > ~/.ssb/config <<EOF
|
||||||
|
@ -115,18 +124,22 @@ while true; do
|
||||||
echo _! > ~/.zen/ssb.pid
|
echo _! > ~/.zen/ssb.pid
|
||||||
done
|
done
|
||||||
EOF
|
EOF
|
||||||
fi
|
|
||||||
|
|
||||||
# REPLACE _ with $
|
# REPLACE _ with $
|
||||||
sed -i s/_/\$/g ~/.zen/run-ssb_$nodename.sh
|
sed -i s/_/\$/g ~/.zen/run-ssb_$nodename.sh
|
||||||
chmod 755 ~/.zen/run-ssb_$nodename.sh
|
chmod 755 ~/.zen/run-ssb_$nodename.sh
|
||||||
# RUN ssb-server
|
ssb-server start --host $nodename &
|
||||||
~/.zen/run-ssb_$nodename.sh &
|
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
echo "DOES SCUTTELBUTT IS RUNNING?"
|
||||||
|
echo "ADD $HOME/.zen/run-ssb_$nodename.sh & TO YOUR '/etc/rc.local' !!! "
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
__ _ _ _ _
|
__ _ _ _ _
|
||||||
(_ |_|_)\ /|_|_) o._ o_|_
|
(_ |_|_)\ /|_|_) o._ o_|_
|
||||||
__)|_| \ \/ |_| \ || || |_ ... SCUTTLEBUTT ... OK
|
__)|_| \ \/ |_| \ || || |_ ... SCUTTLEBUTT ... OK?
|
||||||
|
|
||||||
'
|
'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue