From a88555da13f7c877d401597936cbc0f1fd4df8a1 Mon Sep 17 00:00:00 2001 From: Mauro Rosero P Date: Sun, 8 Dec 2024 23:55:52 -0500 Subject: [PATCH] =?UTF-8?q?[FIXED]=20La=20instalaci=C3=B3n=20requiere=20de?= =?UTF-8?q?=20un=20daemon-reload?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/lib/bootstrap.lib | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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