Skip to content

Commit 62ad723

Browse files
authored
[FIX] odoo_install: fix unary operator expected error
See Yenthe666#215 ">=" is not processed well by bash and causes a unary operator expected error. By doing > then this should be solved.
1 parent cbe5387 commit 62ad723

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

odoo_install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ if [ $GENERATE_RANDOM_PASSWORD = "True" ]; then
161161
OE_SUPERADMIN=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
162162
fi
163163
sudo su root -c "printf 'admin_passwd = ${OE_SUPERADMIN}\n' >> /etc/${OE_CONFIG}.conf"
164-
if [ $OE_VERSION >= "12.0" ];then
164+
if [ $OE_VERSION > "11.0" ];then
165165
sudo su root -c "printf 'http_port = ${OE_PORT}\n' >> /etc/${OE_CONFIG}.conf"
166166
else
167167
sudo su root -c "printf 'xmlrpc_port = ${OE_PORT}\n' >> /etc/${OE_CONFIG}.conf"

0 commit comments

Comments
 (0)