diff --git a/menu/pgui/templates/check.sh b/menu/pgui/templates/check.sh index f684c4fb..2a94bac5 100644 --- a/menu/pgui/templates/check.sh +++ b/menu/pgui/templates/check.sh @@ -10,6 +10,7 @@ mkdir -p /var/plexguide/checkers rm -rf /var/plexguide/checkers/*.log #mkdir -p /var/plexguide/checkers +###mergerfs part mgversion="$(curl -s https://api.github.com/repos/trapexit/mergerfs/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")')" touch /var/plexguide/checkers/mgfs.log touch /var/plexguide/checkers/mergerfs.log @@ -26,9 +27,7 @@ elif [[ "$mgversion" != "$mgstored" ]]; then else echo "stupid line" fi - - - +##### rclpone part rcversion="$(curl -s https://api.github.com/repos/rclone/rclone/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")')" touch /var/plexguide/checkers/rclonestored.log touch /var/plexguide/checkers/rclone.log diff --git a/menu/roles/update/tasks/main.yml b/menu/roles/update/tasks/main.yml index 7e83ffc6..df7e6712 100644 --- a/menu/roles/update/tasks/main.yml +++ b/menu/roles/update/tasks/main.yml @@ -40,6 +40,12 @@ apt: autoclean: yes +- name: Fix filled /boot + shell: apt-get remove `dpkg --list 'linux-image*' |grep ^ii | awk '{print $2}'\ | grep -v \`uname -r\`` + +- name: Update APT package cache + apt: update_cache=yes cache_valid_time=600 + - name: Autoremove unused packages command: apt-get -y autoremove register: apt_result @@ -48,4 +54,4 @@ - name: Purge residual kernel packages shell: apt-get remove -y --purge $(dpkg -l | grep "^rc\s*linux-image-" | awk '{print $2}' | tr '\n' ' ') register: apt_result - changed_when: "'packages will be REMOVED' in apt_result.stdout" + changed_when: "'packages will be REMOVED' in apt_result.stdout" \ No newline at end of file