From 6df2956c9a9d8e812beeb58c665a589bc305b1dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20E=2E=20G=C3=B3mez?= Date: Tue, 22 Dec 2020 22:20:06 -0500 Subject: [PATCH] Script that installs repos in production --- install_all.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 install_all.sh diff --git a/install_all.sh b/install_all.sh new file mode 100644 index 0000000..61fc9fd --- /dev/null +++ b/install_all.sh @@ -0,0 +1,27 @@ +#!/bin/bash +# +# Installs selected content from the downloaded repos into a production folder +# + +if [ $UID != 0 ]; then + echo "You need administration privileges to run this script." + exit 1 +fi + +DEST=/opt/odoo +OPTIONS=-av --exclude .git --chown odoo:odoo + +SRC=./odoo/ +sudo rsync $OPTIONS $SRC $DEST/core/ + +SRC=./v14_avancys_agofer/ +sudo rsync $OPTIONS --exclude-from=rejected_proprietary_modules.txt $SRC $DEST/vendor/ + +SRC=./Extended/ +sudo rsync $OPTIONS $SRC $DEST/custom/ + +SRC=./Community/oca +for i in $(cat selected_oca_modules.txt) + do sudo rsync $OPTIONS $SRC/${i%/} $DEST/community/ +done +