18 lines
291 B
Bash
18 lines
291 B
Bash
|
#!/usr/bin/env bash
|
||
|
cd "$(dirname "$0")"
|
||
|
|
||
|
for var in "$@"
|
||
|
do
|
||
|
if [[ $var == --reset ]] ; then
|
||
|
echo "Performing a full reset..."
|
||
|
rm -rf node_modules
|
||
|
fi
|
||
|
done
|
||
|
|
||
|
if [ ! -d ./node_modules ] ; then
|
||
|
npm install
|
||
|
fi
|
||
|
|
||
|
sudo systemctl stop bbb-graphql-actions-adapter-server
|
||
|
npm start
|