Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
NoCloud
Tetras-back
Commits
d20aa1d7
Verified
Commit
d20aa1d7
authored
Oct 06, 2020
by
David Beniamine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix luks umount
parent
0fc77659
Pipeline
#235
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/scripts/backup_nocloud.sh
src/scripts/backup_nocloud.sh
+2
-2
No files found.
src/scripts/backup_nocloud.sh
View file @
d20aa1d7
...
...
@@ -23,11 +23,11 @@ do_clean(){
then
fusermount
-zu
$encfsmount
fi
umount
-f
$dev
if
$luks
then
cryptsetup luksClose
$luksname
fi
umount
-f
$dev
}
# If $1 is not 0, exit with message $2
...
...
@@ -304,11 +304,11 @@ do_log "démarrage le `date`"
if
$luks
then
umount
-f
$dest
cryptsetup luksClose
$luksname
echo
$ENCPASS
| cryptsetup luksOpen
$dev
$luksname
test_and_fail
$?
"Impossible de déchiffrer le disque, abandon"
/bin/mount
-t
auto /dev/mapper/
$luksname
$dest
echo
"OK"
>
$dest
/test
else
/bin/mount
-t
auto
$dev
$dest
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment