diff options
author | Kevin Morris | 2023-02-12 03:41:48 -0800 |
---|---|---|
committer | Kevin Morris | 2023-02-12 03:41:48 -0800 |
commit | 146f811db52d08fe5aa3ec1c47731b75ebe22ea2 (patch) | |
tree | 2f5bf16e359792cc7b91dc99a9eb35e460530da5 /webvirt-api-git.install | |
download | aur-146f811db52d08fe5aa3ec1c47731b75ebe22ea2.tar.gz |
inital commit
Signed-off-by: Kevin Morris <kevr@0cost.org>
Diffstat (limited to 'webvirt-api-git.install')
-rw-r--r-- | webvirt-api-git.install | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/webvirt-api-git.install b/webvirt-api-git.install new file mode 100644 index 000000000000..59cf95bc21ef --- /dev/null +++ b/webvirt-api-git.install @@ -0,0 +1,20 @@ +#!/bin/bash + +post_install() { + cd /usr/lib/webvirt_api + virtualenv -p python /usr/lib/webvirt_api/venv + source /usr/lib/webvirt_api/venv/bin/activate + poetry install + python manage.py migrate + python manage.py collectstatic --noinput + chown -R webvirt:webvirt /usr/lib/webvirt_api +} + +post_upgrade() { + post_install $1 +} + +op=$1 +shift + +$op $* |