From a01a0efa69629f5b08f6d425ea09c71d531c60f6 Mon Sep 17 00:00:00 2001 From: B Stack Date: Wed, 16 Dec 2020 09:49:58 -0500 Subject: improve instructions for installing short_url --- check-for-short_url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'check-for-short_url.sh') diff --git a/check-for-short_url.sh b/check-for-short_url.sh index 7d37d37..2160d52 100755 --- a/check-for-short_url.sh +++ b/check-for-short_url.sh @@ -9,9 +9,9 @@ echo "import short_url" | $( which python3 2>/dev/null ) 2>/dev/null && exit 0 # # so we need to check the configured user, if we are not that user already. test "${UWSGI_USER}" != "${USER}" && { echo "Will attempt to switch user to ${UWSGI_USER} and check for short_url." 1>&2 - echo "import short_url" | sudo su "${UWSGI_USER}" -c "$( which python3 2>/dev/null ) 2>/dev/null" && exit 0 # short-circuit if we find it + echo "import short_url" | sudo su "${UWSGI_USER}" -s /bin/sh -c "$( which python3 2>/dev/null ) 2>/dev/null" && exit 0 # short-circuit if we find it } echo "Please run something similar to the following, before running hex-zero:" -echo "sudo su ${UWSGI_USER} -c 'pip3 --user install short_url'" +echo "sudo su ${UWSGI_USER} -s /bin/sh -c 'pip3 install --user short_url'" exit 1 -- cgit