Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use "apt-get" in cron script #20

Merged
merged 15 commits into from
Apr 24, 2019
Merged
6 changes: 3 additions & 3 deletions hetnet/neo4j/deployment/upgrade-pkg
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/bash

# Upgrade packages and reboot the system if required.
apt update
DEBIAN_FRONTEND=noninteractive apt full-upgrade --yes
apt autoremove --yes
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get dist-upgrade --yes
apt-get autoremove --yes

if [ -f /var/run/reboot-required ]; then
/sbin/reboot
Expand Down