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 +