Fixed typo in init, added sanity to install

This commit is contained in:
Eric Renfro 2023-12-03 13:03:27 -05:00
parent 4b572673b2
commit eddf06a558
Signed by: psi-jack
GPG Key ID: 14977F3A50D9A5BF
2 changed files with 3 additions and 3 deletions

View File

@ -11,4 +11,4 @@ fi
if [[ ! -f "${scriptPath}/key" ]]; then
resticprofile generate --random-key > "${scriptPath}/key"
fi
chmod go-rwx "${scriptPath}/key "${scriptPath}/profiles.toml" "${scriptPath}/excludes"
chmod go-rwx "${scriptPath}/key" "${scriptPath}/profiles.toml" "${scriptPath}/excludes"

View File

@ -3,8 +3,8 @@
resticVersion="0.16.2"
resticprofileVersion="0.24.0"
mkdir /tmp/restic-install
pushd /tmp/restic-install &>/dev/null
mkdir /tmp/restic-install || exit 1
pushd /tmp/restic-install &>/dev/null || exit 1
wget "https://github.com/restic/restic/releases/download/v${resticVersion}/restic_${resticVersion}_linux_amd64.bz2"
bunzip2 "restic_${resticVersion}_linux_amd64.bz2"
wget "https://github.com/creativeprojects/resticprofile/releases/download/v${resticprofileVersion}/resticprofile_${resticprofileVersion}_linux_amd64.tar.gz"