mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Try to fix the witness shit blocking everything for some reason
This commit is contained in:
parent
38549cd336
commit
2ae3626050
2 changed files with 3 additions and 3 deletions
|
@ -36,7 +36,7 @@ LXC_CREATE () {
|
||||||
[[ "$pipestatus" -eq 0 ]] || exit 1
|
[[ "$pipestatus" -eq 0 ]] || exit 1
|
||||||
|
|
||||||
_LXC_START_AND_WAIT $LXC_NAME
|
_LXC_START_AND_WAIT $LXC_NAME
|
||||||
sleep 3
|
sleep 10
|
||||||
set_witness_files
|
set_witness_files
|
||||||
sleep 3
|
sleep 3
|
||||||
log_info "Creating initial snapshot $LXC_NAME ..."
|
log_info "Creating initial snapshot $LXC_NAME ..."
|
||||||
|
@ -252,5 +252,5 @@ CLEAN_SWAPFILES() {
|
||||||
}
|
}
|
||||||
|
|
||||||
RUN_INSIDE_LXC() {
|
RUN_INSIDE_LXC() {
|
||||||
timeout --signal TERM 300 lxc exec $LXC_NAME -- "$@"
|
lxc exec $LXC_NAME -- "$@"
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@ set_witness_files () {
|
||||||
|
|
||||||
create_witness_file () {
|
create_witness_file () {
|
||||||
[ "$2" = "file" ] && local action="touch" || local action="mkdir -p"
|
[ "$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
|
# Nginx conf
|
||||||
|
|
Loading…
Add table
Reference in a new issue