Organizational update, moving scripts to src so it can be run in-place or 'installed' properly

This commit is contained in:
Eric Renfro 2024-09-02 14:19:33 -04:00
parent e1c2c89ebc
commit 237a85a1e5
Signed by: psi-jack
SSH key fingerprint: SHA256:1TKB8Z257L8EHK8GWNxKgMhD8a+FAR+f+j3nnlcuNVM
3 changed files with 12 additions and 0 deletions

1
srb Symbolic link
View file

@ -0,0 +1 @@
src/srb

4
src/srb Normal file
View file

@ -0,0 +1,4 @@
#!/bin/bash
scriptPath="$(dirname "$(readlink -f "$0")")"

View file

@ -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"