Skip to content

Commit 80afb96

Browse files
authored
Enhance cleanup commands in odoo-install.sh
Updated Odoo installation script to ensure proper cleanup commands are executed with the '-y' flag.
1 parent 8475488 commit 80afb96

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

install/odoo-install.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,11 @@ sed -i \
5858
-e "s|^;*db_password *=.*|db_password = $DB_PASS|" \
5959
/etc/odoo/odoo.conf
6060
$STD sudo -u odoo odoo -c /etc/odoo/odoo.conf -d odoo -i base --stop-after-init
61-
systemctl restart odoo
6261
echo "${LATEST_VERSION}" >/opt/${APPLICATION}_version.txt
6362
msg_ok "Configured Odoo"
6463

6564
msg_info "Restarting Odoo"
66-
65+
systemctl restart odoo
6766
msg_ok "Restarted Odoo"
6867

6968
motd_ssh
@@ -72,6 +71,7 @@ customize
7271
msg_info "Cleaning up"
7372
rm -f /opt/odoo.deb
7473
rm -f /opt/python3-lxml-html-clean.deb
75-
$STD apt autoremove
76-
$STD apt autoclean
74+
$STD apt -y autoremove
75+
$STD apt -y autoclean
76+
$STD apt -y clean
7777
msg_ok "Cleaned"

0 commit comments

Comments
 (0)