diff options
author | B Stack <bgstack15@gmail.com> | 2020-12-16 09:49:58 -0500 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2020-12-16 09:49:58 -0500 |
commit | a01a0efa69629f5b08f6d425ea09c71d531c60f6 (patch) | |
tree | 5b1d9a5c0bc36240be76f7c5fc04cae45d021a73 /check-for-short_url.sh | |
parent | add better debian install notes (diff) | |
download | hex-zero-a01a0efa69629f5b08f6d425ea09c71d531c60f6.tar.gz hex-zero-a01a0efa69629f5b08f6d425ea09c71d531c60f6.tar.bz2 hex-zero-a01a0efa69629f5b08f6d425ea09c71d531c60f6.zip |
improve instructions for installing short_url
Diffstat (limited to 'check-for-short_url.sh')
-rwxr-xr-x | check-for-short_url.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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 |