fix occ shebang and make it executable

This commit is contained in:
Christopher Engelhard 2020-11-10 19:44:19 +01:00
parent d978a92a28
commit 08f384f911
2 changed files with 15 additions and 1 deletions

View File

@ -0,0 +1,9 @@
diff -Naur a/occ b/occ
--- a/occ 2020-10-24 10:37:44.000000000 +0200
+++ b/occ 2020-11-10 19:39:56.523178958 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env php
+#!/usr/bin/php
<?php
/**
* Copyright (c) 2013 Thomas Müller <thomas.mueller@tmit.eu>

View File

@ -33,6 +33,8 @@ Source303: %{name}-MIGRATION.fedora
# Remove updater version check, we know that updates across more than one
# version are possible
Patch0: 0000-disable-update-version-check.patch
# Change occ shebang to /usr/bin/php
Patch1: 0001-mangle-shebang.patch
BuildArch: noarch
# For the systemd macros
@ -337,10 +339,13 @@ for d in $(find . -mindepth 1 -maxdepth 1 -type d | grep -v config); do
cp -a "$d" %{buildroot}%{_datadir}/%{name}
done
for f in {*.php,*.html,occ,robots.txt}; do
for f in {*.php,*.html,robots.txt}; do
install -pm 644 "$f" %{buildroot}%{_datadir}/%{name}
done
# occ should be executable
install -pm 755 occ %{buildroot}%{_datadir}/%{name}
# symlink config dir
ln -sf %{_sysconfdir}/%{name} %{buildroot}%{_datadir}/%{name}/config