From 237a85a1e5e115604266b9afced7cfdacce84dff Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Mon, 2 Sep 2024 14:19:33 -0400 Subject: [PATCH] Organizational update, moving scripts to src so it can be run in-place or 'installed' properly --- srb | 1 + src/srb | 4 ++++ update-iso => src/update-iso | 7 +++++++ 3 files changed, 12 insertions(+) create mode 120000 srb create mode 100644 src/srb rename update-iso => src/update-iso (92%) diff --git a/srb b/srb new file mode 120000 index 0000000..0fbc6b0 --- /dev/null +++ b/srb @@ -0,0 +1 @@ +src/srb \ No newline at end of file diff --git a/src/srb b/src/srb new file mode 100644 index 0000000..4201e8d --- /dev/null +++ b/src/srb @@ -0,0 +1,4 @@ +#!/bin/bash + +scriptPath="$(dirname "$(readlink -f "$0")")" + diff --git a/update-iso b/src/update-iso similarity index 92% rename from update-iso rename to src/update-iso index 6bf7f88..d9e03f0 100755 --- a/update-iso +++ b/src/update-iso @@ -75,6 +75,13 @@ curl -C - -Lso "${systemrescueBaseDir}/systemrescue-${systemrescueVersion}-amd64 curl -C - -Lso "${systemrescueBaseDir}/systemrescue-customize" "https://gitlab.com/systemrescue/systemrescue-sources/-/raw/main/airootfs/usr/share/sysrescue/bin/sysrescue-customize?inline=false" chmod 755 "${systemrescueBaseDir}/systemrescue-customize" chown root:root "${systemrescueBaseDir}/systemrescue-customize" +mkdir "${systemrescueTempDir}/customize" + +"${systemrescueBaseDir}/systemrescue-customize" --auto --overwrite \ + --source="${systemrescueBaseDir}/systemrescue-${systemrescueVersion}-amd64.iso" \ + --dest="${systemrescueBaseDir}/systemrescue-backup-${systemrescueVersion}-amd64.iso" \ + --recipe-dir="${configPath}/sysrescue" \ + --work-dir="${systemrescueTempDir}/customize" if [[ "${backupEngine,,}" == "resticprofile" ]]; then umount "${configPath}/sysrescue/build_into_srm/etc/resticprofile"