This commit is contained in:
Kenneth Geisshirt 2017-08-29 18:01:20 +02:00
parent e53275d167
commit fb153171f8
2 changed files with 5 additions and 4 deletions

View File

@ -31,7 +31,6 @@ RUN dpkg --add-architecture i386 && \
strace \
unzip \
wget \
sudo \
zip && \
curl -sL https://deb.nodesource.com/setup_4.x | bash - && \
apt-get install -y nodejs && \

View File

@ -54,7 +54,8 @@ start_server() {
stop_server() {
if [ "$(uname)" = 'Linux' ]; then
sudo systemctl start realm-object-server
# FIXME: sudo is required if not Docker
systemctl start realm-object-server
fi
if [[ ${SERVER_PID} -gt 0 ]] ; then
kill -9 ${SERVER_PID}
@ -308,8 +309,9 @@ case "$TARGET" in
adb reverse tcp:9443 tcp:9443
adb reverse tcp:9080 tcp:9080
adb reverse tcp:8888 tcp:8888
sudo systemctl enable realm-object-server
sudo systemctl start realm-object-server
# FIXME: sudo is required if not Docker
systemctl enable realm-object-server
systemctl start realm-object-server
fi
[[ $CONFIGURATION == 'Debug' ]] && exit 0