From 75e14bc4e05be98f03a5df45e1b900c52dcc4a51 Mon Sep 17 00:00:00 2001 From: Salt Date: Tue, 26 May 2020 11:19:54 -0500 Subject: [PATCH] Add monodevelop, fix terraria backups growing eternally --- roles/desktop/tasks/main.yml | 8 ++++++++ roles/terraria/templates/backup.sh | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/roles/desktop/tasks/main.yml b/roles/desktop/tasks/main.yml index fafac77..4c1064b 100644 --- a/roles/desktop/tasks/main.yml +++ b/roles/desktop/tasks/main.yml @@ -38,10 +38,17 @@ notify: reload udev - name: Enable i386 architecture command: /usr/bin/dpkg --add-architecture i386 + - name: Add repo keys + apt_key: + keyserver: 'keyserver.ubuntu.com' + id: "{{ item }}" + loop: + - "3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF" # Monodevelop - name: Add repos apt_repository: repo: "{{ item }}" loop: + - "deb https://download.mono-project.com/repo/ubuntu vs-bionic main" # Monodevelop; see above for key - "ppa:drewwalton19216801/dolphin-master-cosmic" # Because Dolphin doesn't update their shit - "ppa:kgilmer/speed-ricer" # Rice rice rice - "ppa:lutris-team/lutris" @@ -112,6 +119,7 @@ - keepassxc - lutris - mesa-vulkan-drivers + - monodevelop - mpc - mpd - mpv diff --git a/roles/terraria/templates/backup.sh b/roles/terraria/templates/backup.sh index ca45a7b..938d401 100644 --- a/roles/terraria/templates/backup.sh +++ b/roles/terraria/templates/backup.sh @@ -33,7 +33,7 @@ chmod 770 "$OUTDIR" # Purge oldest backup if we need to currentbackupcount="$(ls -1 "$OUTDIR" | wc -l)" if (( currentbackupcount >= retention )); then - lastbackup="$(find "$OUTDIR" -name \*.zip 2>/dev/null | sort | head -n 1)" + lastbackup="$(find "$OUTDIR" -name \*.wld 2>/dev/null | sort | head -n 1)" if [ -f "$lastbackup" ]; then log "Removing old backup: $lastbackup" rm "$lastbackup"