summarylogtreecommitdiffstats
path: root/overgrive.install
diff options
context:
space:
mode:
Diffstat (limited to 'overgrive.install')
-rw-r--r--overgrive.install15
1 files changed, 15 insertions, 0 deletions
diff --git a/overgrive.install b/overgrive.install
new file mode 100644
index 00000000000..eb6930ac58f
--- /dev/null
+++ b/overgrive.install
@@ -0,0 +1,15 @@
+post_install() {
+ virtualenv2 --system-site-packages /opt/thefanclub/overgrive/venv
+ /opt/thefanclub/overgrive/venv/bin/python2 -m pip install --upgrade google-api-python-client
+ /opt/thefanclub/overgrive/venv/bin/python2 -m pip install --upgrade oauth2client
+ sudo glib-compile-schemas /usr/share/glib-2.0/schemas
+}
+post_upgrade() {
+ post_install
+}
+post_remove() {
+ sudo rm -rf /opt/thefanclub/overgrive/
+ if [ -z "$(ls -A /opt/thefanclub/)" ]; then
+ sudo rmdir /opt/thefanclub/
+ fi
+} \ No newline at end of file