mirror of https://github.com/searxng/searxng.git
[fix] fatal: repository '/root/searx' does not exist
The $SERVICE_USER (searx) needs read permission to clone repository. The installation script stops if permission is not granted. - https://github.com/asciimoo/searx/pull/1803#issuecomment-616406528 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
8829796f76
commit
0973255aff
|
@ -358,6 +358,9 @@ clone_is_available() {
|
||||||
clone_searx() {
|
clone_searx() {
|
||||||
rst_title "Clone searx sources" section
|
rst_title "Clone searx sources" section
|
||||||
echo
|
echo
|
||||||
|
if ! sudo -i -u "$SERVICE_USER" ls -d "$REPO_ROOT" > /dev/null; then
|
||||||
|
die 42 "user '$SERVICE_USER' missed read permission: $REPO_ROOT"
|
||||||
|
fi
|
||||||
SERVICE_HOME="$(sudo -i -u "$SERVICE_USER" echo \$HOME 2>/dev/null)"
|
SERVICE_HOME="$(sudo -i -u "$SERVICE_USER" echo \$HOME 2>/dev/null)"
|
||||||
if [[ ! "${SERVICE_HOME}" ]]; then
|
if [[ ! "${SERVICE_HOME}" ]]; then
|
||||||
err_msg "to clone searx sources, user $SERVICE_USER hast to be created first"
|
err_msg "to clone searx sources, user $SERVICE_USER hast to be created first"
|
||||||
|
|
Loading…
Reference in New Issue