#!/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