mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-20 03:40:17 +00:00
Merge pull request #737 from Calvin-L/patch-1-on-test-branch
Flush disk writes before reboot (resubmit)
This commit is contained in:
commit
50e19f5906
1 changed files with 4 additions and 0 deletions
|
@ -1372,6 +1372,10 @@ main() {
|
|||
;;
|
||||
esac
|
||||
|
||||
# Ensure that cached writes reach persistent storage
|
||||
echo "::: Flushing writes to disk..."
|
||||
sync
|
||||
|
||||
echo "::: done."
|
||||
|
||||
if [[ "${useUpdateVars}" == false ]]; then
|
||||
|
|
Loading…
Reference in a new issue