diff --git a/V9/odoo_install.sh b/V9/odoo_install.sh index a525f8f..13f8714 100644 --- a/V9/odoo_install.sh +++ b/V9/odoo_install.sh @@ -44,6 +44,14 @@ OE_VERSION="9.0" OE_SUPERADMIN="admin" OE_CONFIG="${OE_USER}-server" +#-------------------------------------------------- +# Make sure only root or sudoers can run our script +#-------------------------------------------------- +if [ "$(id -u)" != "0" ]; then + echo "This script must be run with administrator rights!" 1>&2 + exit 1 +fi + #-------------------------------------------------- # Update Server #--------------------------------------------------