mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 22:46:04 +03:00
Add user id param
This commit is contained in:
parent
dafc2d2b73
commit
450a815d61
1 changed files with 7 additions and 2 deletions
|
@ -1,6 +1,11 @@
|
||||||
#!/bin/bash
|
#!/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
|
su - user << EOF
|
||||||
cd /home/user/$1
|
cd /home/user/$1
|
||||||
rm -rf build-win32
|
rm -rf build-win32
|
||||||
|
@ -10,5 +15,5 @@ cd build-win32
|
||||||
cmake .. -DCMAKE_TOOLCHAIN_FILE=../admin/win/Toolchain-mingw32-openSUSE.cmake -DWITH_CRASHREPORTER=ON
|
cmake .. -DCMAKE_TOOLCHAIN_FILE=../admin/win/Toolchain-mingw32-openSUSE.cmake -DWITH_CRASHREPORTER=ON
|
||||||
make -j4
|
make -j4
|
||||||
make package
|
make package
|
||||||
|
ctest .
|
||||||
EOF
|
EOF
|
||||||
|
|
Loading…
Reference in a new issue