Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
telemersion
Telemersive Router
Commits
d6eebaa2
Commit
d6eebaa2
authored
Feb 18, 2021
by
root
Browse files
fixed node and npm installation
parent
1c0dcc11
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitignore
0 → 100644
View file @
d6eebaa2
manager/node_modules/
manager/package-lock.json
package-lock.json
manager-service-install.sh
View file @
d6eebaa2
...
...
@@ -15,6 +15,10 @@ source manager-service.cfg
echo
"installing msoquitto..."
sudo
apt update
sudo
apt
install
acl
-y
sudo
apt
install
nodejs npm
-y
# update npm
npm
install
npm@latest
-g
# add user
echo
"adding service user..."
...
...
@@ -29,7 +33,7 @@ npm install
# prepare service configuration form template
echo
"installing service..."
RUN_SCRIPT_PATH
=
"
$SCRIPT_PATH
/broker-run.sh"
cp
"
brok
er/
$SERVICE_NAME
.service.txt"
"
$SERVICE_NAME
.service"
cp
"
manag
er/
$SERVICE_NAME
.service.txt"
"
$SERVICE_NAME
.service"
sed
-i
-e
"s~%COMMAND%~
$RUN_SCRIPT_PATH
~g"
"
$SERVICE_NAME
.service"
sed
-i
-e
"s~%USER%~
$SERVICE_USER_NAME
~g"
"
$SERVICE_NAME
.service"
...
...
@@ -47,4 +51,4 @@ echo "sudo systemctl start $SERVICE_NAME.service"
echo
""
echo
""
popd
\ No newline at end of file
popd
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment