From 2cdcba04e772516fe6a148d5efc020e8b068f986 Mon Sep 17 00:00:00 2001
From: Robin Appelman <robin@icewind.nl>
Date: Mon, 22 Feb 2021 18:31:14 +0100
Subject: [PATCH] ensure binary is marked as executable

---
 appinfo/info.xml    | 2 +-
 lib/SetupWizard.php | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/appinfo/info.xml b/appinfo/info.xml
index 1fb41c2..18f3fd3 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -7,7 +7,7 @@
 	<description><![CDATA[Push update support for desktop app.
 
 Once the app is installed, the push binary needs to be setup. You can either use the setup wizard with `occ notify_push:setup` or see the [README](http://github.com/nextcloud/notify_push) for detailed setup instructions]]></description>
-	<version>0.1.0</version>
+	<version>0.1.1</version>
 	<licence>agpl</licence>
 	<author>Robin Appelman</author>
 	<namespace>NotifyPush</namespace>
diff --git a/lib/SetupWizard.php b/lib/SetupWizard.php
index d82d11e..4b8b4ee 100644
--- a/lib/SetupWizard.php
+++ b/lib/SetupWizard.php
@@ -79,6 +79,7 @@ class SetupWizard {
 
 	public function testBinary(): bool {
 		$path = $this->getBinaryPath();
+		@chmod($path, 0755);
 		$appVersion = $this->appManager->getAppVersion("notify_push");
 		$output = [];
 		exec("$path --version", $output);
-- 
GitLab