on master help sign in
[fix] fatal: repository '/root/searx' does not exist
0973255Markus Heiser
utils/searx.sh+3
@@ -358,6 +358,9 @@ clone_is_available() {
358clone_searx() {
358clone_searx() {
359 rst_title "Clone searx sources" section
359 rst_title "Clone searx sources" section
360 echo
360 echo
361+ if ! sudo -i -u "$SERVICE_USER" ls -d "$REPO_ROOT" > /dev/null; then
362+ die 42 "user '$SERVICE_USER' missed read permission: $REPO_ROOT"
363+ fi
361 SERVICE_HOME="$(sudo -i -u "$SERVICE_USER" echo \$HOME 2>/dev/null)"
364 SERVICE_HOME="$(sudo -i -u "$SERVICE_USER" echo \$HOME 2>/dev/null)"
362 if [[ ! "${SERVICE_HOME}" ]]; then
365 if [[ ! "${SERVICE_HOME}" ]]; then
363 err_msg "to clone searx sources, user $SERVICE_USER hast to be created first"
366 err_msg "to clone searx sources, user $SERVICE_USER hast to be created first"