mirror of
https://github.com/ovh/the-bastion.git
synced 2025-02-01 12:38:08 +08:00
enh: setup-encryption.sh: check that luks-config.sh exists
As seen in #181
This commit is contained in:
parent
68e088a607
commit
e865964dd2
1 changed files with 8 additions and 0 deletions
|
@ -15,6 +15,14 @@ else
|
||||||
action_done
|
action_done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
action_doing "Checking whether the install script has run"
|
||||||
|
if ! [ -f "/etc/bastion/luks-config.sh" ]; then
|
||||||
|
action_error "The '/etc/bastion/luks-config.sh' file doesn't exist, did you run the '$basedir/bin/admin/install' script before?"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
action_done
|
||||||
|
fi
|
||||||
|
|
||||||
action_doing "Checking whether /home is a separate partition"
|
action_doing "Checking whether /home is a separate partition"
|
||||||
home_block_device=$(awk '/ \/home / {print $1}' /proc/mounts)
|
home_block_device=$(awk '/ \/home / {print $1}' /proc/mounts)
|
||||||
if [ -n "$home_block_device" ] && [ -e "$home_block_device" ]; then
|
if [ -n "$home_block_device" ] && [ -e "$home_block_device" ]; then
|
||||||
|
|
Loading…
Reference in a new issue