You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
320 B
Bash

#!/bin/bash
set -e
local_settings="ccvpn/local_settings.py"
run_manage() {
echo "> manage.py $1..."
python3 manage.py "$@"
}
run_manage compilemessages
run_manage migrate
run_manage update_stripe_plans
if [ -f $local_settings ] && grep "^STATIC_ROOT" $local_settings; then
run_manage collectstatic
fi