From 62ad7239d012feb35c61d286a9679b18bbd9d707 Mon Sep 17 00:00:00 2001 From: Yenthe Van Ginneken Date: Thu, 16 Apr 2020 14:08:07 +0200 Subject: [PATCH] [FIX] odoo_install: fix unary operator expected error See https://github.com/Yenthe666/InstallScript/pull/215 ">=" is not processed well by bash and causes a unary operator expected error. By doing > then this should be solved. --- odoo_install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo_install.sh b/odoo_install.sh index 55c266f..ea8819d 100644 --- a/odoo_install.sh +++ b/odoo_install.sh @@ -161,7 +161,7 @@ if [ $GENERATE_RANDOM_PASSWORD = "True" ]; then OE_SUPERADMIN=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1) fi sudo su root -c "printf 'admin_passwd = ${OE_SUPERADMIN}\n' >> /etc/${OE_CONFIG}.conf" -if [ $OE_VERSION >= "12.0" ];then +if [ $OE_VERSION > "11.0" ];then sudo su root -c "printf 'http_port = ${OE_PORT}\n' >> /etc/${OE_CONFIG}.conf" else sudo su root -c "printf 'xmlrpc_port = ${OE_PORT}\n' >> /etc/${OE_CONFIG}.conf"