Try to fix the witness shit blocking everything for some reason

This commit is contained in:
Alexandre Aubin 2023-02-08 20:51:52 +01:00
parent 38549cd336
commit 2ae3626050
2 changed files with 3 additions and 3 deletions

View file

@ -36,7 +36,7 @@ LXC_CREATE () {
[[ "$pipestatus" -eq 0 ]] || exit 1
_LXC_START_AND_WAIT $LXC_NAME
sleep 3
sleep 10
set_witness_files
sleep 3
log_info "Creating initial snapshot $LXC_NAME ..."
@ -252,5 +252,5 @@ CLEAN_SWAPFILES() {
}
RUN_INSIDE_LXC() {
timeout --signal TERM 300 lxc exec $LXC_NAME -- "$@"
lxc exec $LXC_NAME -- "$@"
}

View file

@ -5,7 +5,7 @@ set_witness_files () {
create_witness_file () {
[ "$2" = "file" ] && local action="touch" || local action="mkdir -p"
RUN_INSIDE_LXC $action $1
RUN_INSIDE_LXC timeout --signal TERM 10 $action $1
}
# Nginx conf