aboutsummaryrefslogtreecommitdiff
path: root/check-for-short_url.sh
diff options
context:
space:
mode:
Diffstat (limited to 'check-for-short_url.sh')
-rwxr-xr-xcheck-for-short_url.sh4
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
bgstack15