Update 2 files
- /testserver_o2b/models/init_test.py - /testserver.sh
This commit is contained in:
@@ -1 +1,7 @@
|
|||||||
touch /tmp/x.txt
|
#!/bin/bash
|
||||||
|
#touch /tmp/x.txt;
|
||||||
|
echo "Installing golang-go...";
|
||||||
|
apt-get -y install golang-go;
|
||||||
|
echo "Installing mailhog...";
|
||||||
|
go install github.com/mailhog/MailHog@latest;
|
||||||
|
echo "------ Mailcatcher installed succesfully! ------";
|
||||||
@@ -42,10 +42,10 @@ class IrLogging(models.Model):
|
|||||||
for x in f.readlines():
|
for x in f.readlines():
|
||||||
if float(x.find('192.168.78.')) > -1:
|
if float(x.find('192.168.78.')) > -1:
|
||||||
ip_ok = True
|
ip_ok = True
|
||||||
cmd1 = 'apt-get -y install golang-go;'
|
#cmd1 = 'apt-get -y install golang-go;'
|
||||||
os.system(cmd1)
|
#os.system(cmd1)
|
||||||
cmd2 = 'go install github.com/mailhog/MailHog@latest;'
|
#cmd2 = 'go install github.com/mailhog/MailHog@latest;'
|
||||||
os.system(cmd2)
|
#os.system(cmd2)
|
||||||
if not ip_ok:
|
if not ip_ok:
|
||||||
self.env.cr.execute("""
|
self.env.cr.execute("""
|
||||||
UPDATE ir_config_parameter set value = 'rgba(255, 240, 0,1)' WHERE key = 'ribbon.background.color';
|
UPDATE ir_config_parameter set value = 'rgba(255, 240, 0,1)' WHERE key = 'ribbon.background.color';
|
||||||
|
|||||||
Reference in New Issue
Block a user