[Pkg-owncloud-commits] [owncloud-client] 28/159: Add user id param

Sandro Knauß hefee-guest at moszumanska.debian.org
Fri May 1 13:05:18 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 450a815d614fd4a89355ce8cb62debd8d286f164
Author: Daniel Molkentin <danimo at owncloud.com>
Date:   Tue Mar 24 22:05:40 2015 +0100

    Add user id param
---
 admin/win/docker/build.sh | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/admin/win/docker/build.sh b/admin/win/docker/build.sh
index d128710..16305dd 100755
--- a/admin/win/docker/build.sh
+++ b/admin/win/docker/build.sh
@@ -1,6 +1,11 @@
 #!/bin/bash
 
-useradd user
+if [ $# -lt 1 ]; then
+  echo "Usage: $(basename $0) directory_relative_to_home [uid]"
+  exit
+fi
+
+useradd user -u ${2:-1000}
 su - user << EOF
 cd /home/user/$1
 rm -rf build-win32
@@ -10,5 +15,5 @@ cd build-win32
 cmake .. -DCMAKE_TOOLCHAIN_FILE=../admin/win/Toolchain-mingw32-openSUSE.cmake -DWITH_CRASHREPORTER=ON
 make -j4
 make package
-
+ctest .
 EOF

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list