Script that installs repos in production
This commit is contained in:
parent
7727ca0a68
commit
6df2956c9a
27
install_all.sh
Normal file
27
install_all.sh
Normal file
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user