#!/bin/sh # Must be run as root. USERNAME=hex-zero # install short_url for the user only if ! /var/www/hex-zero/check-for-short_url.sh 1>/dev/null 2>&1 ; then su ${USERNAME} -s /bin/sh -c 'pip3 install --user short_url' fi