[IMP] point_of_sale: keep as many scripts as possible in the odoo repo
This way we don't require a new image when we want to change eg. the odoo configuration file.
This commit is contained in:
parent
f0551d2d8d
commit
02f0cbe353
|
@ -104,7 +104,7 @@ class PosboxUpgrader(hw_proxy.Proxy):
|
|||
def perform_upgrade(self):
|
||||
self.upgrading.acquire()
|
||||
|
||||
os.system('/home/pi/posbox_update.sh')
|
||||
os.system('/home/pi/odoo/addons/point_of_sale/tools/posbox/configuration/posbox_update.sh')
|
||||
|
||||
self.upgrading.release()
|
||||
return 'SUCCESS'
|
||||
|
|
|
@ -5,6 +5,6 @@
|
|||
# Call all S??* scripts in /etc/rcS.d/ in numerical/alphabetical order
|
||||
#
|
||||
|
||||
/etc/setup_ramdisks.sh
|
||||
/home/pi/odoo/addons/point_of_sale/tools/posbox/configuration/setup_ramdisks.sh
|
||||
|
||||
exec /etc/init.d/rc S
|
||||
|
|
|
@ -20,6 +20,6 @@ fi
|
|||
mkdir -p /var/run/odoo
|
||||
chown pi:pi /var/run/odoo
|
||||
|
||||
/home/pi/led_status.sh &
|
||||
/home/pi/odoo/addons/point_of_sale/tools/posbox/configuration/led_status.sh &
|
||||
|
||||
exit 0
|
||||
|
|
|
@ -17,7 +17,7 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
|
|||
DAEMON=/home/pi/odoo/odoo.py
|
||||
NAME=odoo
|
||||
DESC=odoo
|
||||
CONFIG=/home/pi/odoo.conf
|
||||
CONFIG=/home/pi/odoo/addons/point_of_sale/tools/posbox/configuration/odoo.conf
|
||||
LOGFILE=/var/log/odoo/odoo-server.log
|
||||
PIDFILE=/var/run/${NAME}.pid
|
||||
USER=pi
|
||||
|
|
|
@ -35,6 +35,7 @@ git config core.sparsecheckout true
|
|||
echo "addons/web
|
||||
addons/web_kanban
|
||||
addons/hw_*
|
||||
addons/point_of_sale/tools/posbox/configuration
|
||||
openerp/
|
||||
odoo.py" | tee --append .git/info/sparse-checkout > /dev/null
|
||||
git read-tree -mu HEAD
|
||||
|
|
Loading…
Reference in New Issue