mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-31 00:15:57 -05:00
fix runtimes issue with starting then stopping, seems forever not needed under docker
This commit is contained in:
parent
501845e412
commit
81b1a3acf4
@ -15,8 +15,7 @@ RUN adduser --quiet meshcentral \
|
||||
&& chmod +x /startmeshcentral.sh \
|
||||
&& su - meshcentral \
|
||||
&& cd /home/meshcentral \
|
||||
&& npm install meshcentral node-7z greenlock-cli \
|
||||
&& ls
|
||||
&& npm install meshcentral node-7z greenlock-cli
|
||||
|
||||
ENV PORT 443
|
||||
ENV REDIRPORT 80
|
||||
|
@ -15,7 +15,7 @@ cd /home/meshcentral/
|
||||
npm install meshcentral
|
||||
|
||||
if ! [ -f node_modules/.meshcentral-data/agentserver-cert-private.key ] ;then
|
||||
forever start node_modules/meshcentral/meshcentral.js --cert $HOSTNAME
|
||||
node node_modules/meshcentral/meshcentral.js --cert $HOSTNAME --port $PORT --redirport $REDIRPORT
|
||||
elif [ -f ssl.key ]; then
|
||||
ln -sf ssl.key node_modules/.meshcentral-data/agentserver-cert-private.key
|
||||
ln -sf ssl.cert node_modules/.meshcentral-data/agentserver-cert-public.crt
|
||||
@ -25,7 +25,8 @@ elif [ -f ssl.key ]; then
|
||||
ln -sf ssl.cert node_modules/.meshcentral-data/webserver-cert-public.crt
|
||||
ln -sf ssl.key node_modules/.meshcentral-data/mpsserver-cert-private.key
|
||||
ln -sf ssl.cert node_modules/.meshcentral-data/mpsserver-cert-public.crt
|
||||
node node_modules/meshcentral/meshcentral.js --port $PORT --redirport $REDIRPORT
|
||||
else
|
||||
forever start node_modules/meshcentral/meshcentral.js --port $PORT --redirport $REDIRPORT
|
||||
node node_modules/meshcentral/meshcentral.js --port $PORT --redirport $REDIRPORT
|
||||
fi
|
||||
|
@ -11,6 +11,7 @@ else
|
||||
REDIRPORT=$2
|
||||
fi
|
||||
|
||||
|
||||
su - meshcentral
|
||||
cd /home/meshcentral/
|
||||
npm install meshcentral
|
||||
|
Loading…
x
Reference in New Issue
Block a user