forked from GitHub/dbot
Update install
This commit is contained in:
parent
1a590bd678
commit
a2a025ad55
6
install
6
install
@ -3,12 +3,12 @@ cat LICENCE
|
|||||||
git submodule init
|
git submodule init
|
||||||
git submodule update
|
git submodule update
|
||||||
|
|
||||||
if [ ! -e /usr/bin/node ] && [ ! -e /usr/local/bin/node ];
|
if [ ! -e /usr/bin/node ] && [ ! -e /usr/local/bin/node ] && [ ! -e /usr/local/bin/node ] && [ ! -e /usr/sbin/node ];
|
||||||
then
|
then
|
||||||
echo 'node.js is not installed. Please install it before running install.sh.'
|
echo 'node.js is not installed. Please install it before running install.sh.'
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [ ! -e /usr/bin/npm ] && [ ! -e /usr/local/bin/npm ];
|
if [ ! -e /usr/bin/npm ] && [ ! -e /usr/local/bin/npm ] && [ ! -e /usr/sbin/npm ];
|
||||||
then
|
then
|
||||||
echo 'npm is not installed. Please install it before running install.sh'
|
echo 'npm is not installed. Please install it before running install.sh'
|
||||||
exit 1
|
exit 1
|
||||||
@ -38,7 +38,7 @@ then
|
|||||||
vim config.json
|
vim config.json
|
||||||
fi
|
fi
|
||||||
|
|
||||||
read -p "Setup complete. Run depressionbot now? [y/N]"
|
read -p "Setup complete. Run dbot now? [y/N]"
|
||||||
if [[ ! $REPLY =~ ^[Yy]$ ]]
|
if [[ ! $REPLY =~ ^[Yy]$ ]]
|
||||||
then
|
then
|
||||||
echo 'Okay. To run the bot, use "node run.js"'
|
echo 'Okay. To run the bot, use "node run.js"'
|
||||||
|
Loading…
Reference in New Issue
Block a user