Fixed typo in init, added sanity to install
This commit is contained in:
parent
4b572673b2
commit
eddf06a558
2 changed files with 3 additions and 3 deletions
2
init.sh
2
init.sh
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue