mirror of
https://github.com/erenfro/systemrescue-backup.git
synced 2024-11-13 21:58:58 -05:00
Organizational update, moving scripts to src so it can be run in-place or 'installed' properly
This commit is contained in:
parent
e1c2c89ebc
commit
237a85a1e5
3 changed files with 12 additions and 0 deletions
1
srb
Symbolic link
1
srb
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
src/srb
|
4
src/srb
Normal file
4
src/srb
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
scriptPath="$(dirname "$(readlink -f "$0")")"
|
||||||
|
|
|
@ -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"
|
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"
|
chmod 755 "${systemrescueBaseDir}/systemrescue-customize"
|
||||||
chown root:root "${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
|
if [[ "${backupEngine,,}" == "resticprofile" ]]; then
|
||||||
umount "${configPath}/sysrescue/build_into_srm/etc/resticprofile"
|
umount "${configPath}/sysrescue/build_into_srm/etc/resticprofile"
|
Loading…
Reference in a new issue