mirror of
https://src.fedoraproject.org/rpms/nextcloud.git
synced 2025-01-10 10:51:54 +01:00
fix occ shebang and make it executable
This commit is contained in:
parent
1719ce2670
commit
f290bf06e4
9
0001-mangle-shebang.patch
Normal file
9
0001-mangle-shebang.patch
Normal 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>
|
@ -33,6 +33,8 @@ Source303: %{name}-MIGRATION.fedora
|
|||||||
# Remove updater version check, we know that updates across more than one
|
# Remove updater version check, we know that updates across more than one
|
||||||
# version are possible
|
# version are possible
|
||||||
Patch0: 0000-disable-update-version-check.patch
|
Patch0: 0000-disable-update-version-check.patch
|
||||||
|
# Change occ shebang to /usr/bin/php
|
||||||
|
Patch1: 0001-mangle-shebang.patch
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# For the systemd macros
|
# For the systemd macros
|
||||||
@ -339,10 +341,13 @@ for d in $(find . -mindepth 1 -maxdepth 1 -type d | grep -v config); do
|
|||||||
cp -a "$d" %{buildroot}%{_datadir}/%{name}
|
cp -a "$d" %{buildroot}%{_datadir}/%{name}
|
||||||
done
|
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}
|
install -pm 644 "$f" %{buildroot}%{_datadir}/%{name}
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# occ should be executable
|
||||||
|
install -pm 755 occ %{buildroot}%{_datadir}/%{name}
|
||||||
|
|
||||||
# symlink config dir
|
# symlink config dir
|
||||||
ln -sf %{_sysconfdir}/%{name} %{buildroot}%{_datadir}/%{name}/config
|
ln -sf %{_sysconfdir}/%{name} %{buildroot}%{_datadir}/%{name}/config
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user