diff --git a/bin/lib/bootstrap.lib b/bin/lib/bootstrap.lib index 04317dd..e212fe1 100755 --- a/bin/lib/bootstrap.lib +++ b/bin/lib/bootstrap.lib @@ -48,7 +48,12 @@ function install_pritunl() { gpg --armor --export $PRITUNL_SIGN | tee /etc/apt/trusted.gpg.d/pritunl.asc apt update apt install pritunl-client-electron -y - return $? + local rc=$? + if [ rc -eq 0 ]; then + systemctl daemon-reload + rc=$? + fi + return $rc fi fi