generated from userver-framework/service_template
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use installed version of userver if any (#51)
- Loading branch information
Showing
10 changed files
with
55 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
worker-threads: 4 | ||
worker-fs-threads: 2 | ||
logger-level: debug | ||
logger-level: info | ||
|
||
is-testing: false | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Exit on any error and treat unset variables as errors | ||
set -euo pipefail | ||
|
||
DIR_UID="$(stat -c '%u' .)" | ||
|
||
if ! id -u user > /dev/null 2> /dev/null; then | ||
if [ "$DIR_UID" = "0" ]; then | ||
useradd --create-home --no-user-group user | ||
else | ||
useradd --create-home --no-user-group --uid $DIR_UID user | ||
fi | ||
elif [ "$DIR_UID" != "0" ]; then | ||
usermod -u $DIR_UID user | ||
fi | ||
|
||
HOME=/home/user sudo -E -u user "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
### Directory for third party libraries | ||
|
||
`userver` placed into this directory would be used if there's no installed | ||
userver framework. For example: | ||
|
||
``` | ||
cd /data/code | ||
git clone --depth 1 https://github.com/userver-framework/userver.git | ||
git clone --depth 1 https://github.com/userver-framework/pg_service_template.git | ||
ln -s /data/code/userver /data/code/pg_service_template/third_party/userver | ||
``` |
Submodule userver
deleted from
2846de