| Server IP : 172.67.131.151 / Your IP : 104.23.243.115 Web Server : Apache System : Linux keen-cori.18-142-40-148.plesk.page 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 06:59:36 UTC 2025 x86_64 User : simottodesign.com_2tntp341vs7 ( 10011) PHP Version : 8.3.31 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/thread-self/root/lib/update-notifier/ |
Upload File : |
#!/bin/sh
#
CDROM_MOUNT="$1"
for d in "$CDROM_MOUNT"/dists/*/main/dist-upgrader/binary-all/; do
if [ -d "$d" ]; then
UPGRADER_DIR="$d"
break
fi
done
TAR=$(basename "$UPGRADER_DIR"/*.tar.gz)
CODENAME=${TAR%.tar.gz}
# get a tempdir
TMPDIR=$(mktemp -t -d distupgrade.XXXXXX)
cd $TMPDIR
# extract the tar
tar xzf "$UPGRADER_DIR"/"$TAR"
# apply any patches needed before running the upgrade
for apatch in /usr/share/update-notifier/upgrader-patches/*.diff; do
if patch --dry-run < "$apatch"; then
patch < "$apatch"
fi
done
# run it
"$TMPDIR"/"$CODENAME" --cdrom "$CDROM_MOUNT"