1153a4f7a1
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
12 lines
443 B
Smarty
12 lines
443 B
Smarty
#!/bin/sh
|
|
export LC_ALL=C
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
{{#aptProxy}}export http_proxy="{{aptProxy}}"; export https_proxy="{{aptProxy}}"
|
|
{{/aptProxy}}
|
|
echo "===SU:UPGRADE==="
|
|
apt-get -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold full-upgrade 2>&1
|
|
CODE=$?
|
|
echo "===SU:REBOOT==="
|
|
if [ -f /var/run/reboot-required ]; then echo "REBOOT_REQUIRED=1"; else echo "REBOOT_REQUIRED=0"; fi
|
|
echo "===SU:EXIT=${CODE}==="
|