From fb153171f884f2bbdff85b83ec06b28dd38c40df Mon Sep 17 00:00:00 2001 From: Kenneth Geisshirt Date: Tue, 29 Aug 2017 18:01:20 +0200 Subject: [PATCH] wip --- Dockerfile | 1 - scripts/test.sh | 8 +++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4924d1dd..02d3a5a1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 && \ diff --git a/scripts/test.sh b/scripts/test.sh index 341b277d..b1beb7f7 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -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