forked from pool/nextcloud
Compare commits
26 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| d38205d81c | |||
| d6f651bd17 | |||
| 53d815d65d | |||
| 5d9de9708e | |||
| a893240376 | |||
| b139ce6a8f | |||
| 2a6add82ad | |||
| 2202be376b | |||
| 99a771bd51 | |||
| f41a9f66a9 | |||
| ff35543092 | |||
| 127e723ac9 | |||
| e9561c468f | |||
| c2cecf4ed6 | |||
| a795ec28aa | |||
| 2f99eedb39 | |||
| d306a6a42f | |||
| c9465c0ffd | |||
| 48c7ca7771 | |||
| f8842e2dd5 | |||
| faf4ef172b | |||
| 423e9bc19d | |||
| 50cceccfd0 | |||
| 7f8537bc55 | |||
| f9925f6bde | |||
| 1aaaae674f |
22
README.SUSE
22
README.SUSE
@@ -8,9 +8,29 @@ opcache.enable=On
|
||||
opcache.enable_cli=1
|
||||
opcache.interned_strings_buffer=16
|
||||
opcache.max_accelerated_files=10000
|
||||
opcache.memory_consumption=128
|
||||
opcache.memory_consumption=152
|
||||
opcache.save_comments=1
|
||||
opcache.revalidate_freq=1
|
||||
|
||||
Also you should set the memory_limit to somthing like >=512MB in
|
||||
/etc/php8/apache2/php.ini and /etc/php8/cli/php.ini
|
||||
|
||||
To change table row_format you can use following script:
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
# Prompt for database credentials
|
||||
read -p "Enter Database Name: " DB_NAME
|
||||
read -p "Enter Username: " DB_USER
|
||||
read -s -p "Enter Password: " DB_PASS
|
||||
echo
|
||||
|
||||
# Generate ALTER TABLE statements and execute them
|
||||
mysql -u "$DB_USER" -p"$DB_PASS" -e "
|
||||
SELECT CONCAT('ALTER TABLE \`', TABLE_NAME, '\` ROW_FORMAT=DYNAMIC;')
|
||||
FROM INFORMATION_SCHEMA.TABLES
|
||||
WHERE TABLE_SCHEMA = '$DB_NAME'
|
||||
AND ENGINE = 'InnoDB';
|
||||
" -B -N | while read -r sql; do
|
||||
mysql -u "$DB_USER" -p"$DB_PASS" -e "$sql" "$DB_NAME"
|
||||
done
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f532ffc31be5a8374b5e072b86fff8765ec19fda0c8509cee39873081db2c544
|
||||
size 204453544
|
||||
3
nextcloud-31.0.4.tar.bz2
Normal file
3
nextcloud-31.0.4.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a47541566d5c6ac6f63e4f617e27da295156da47daa2cd22eee3400fd2ad1251
|
||||
size 227351477
|
||||
3416
nextcloud.changes
3416
nextcloud.changes
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package nextcloud
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -23,13 +23,13 @@
|
||||
%define apache_docdir /usr/share/doc/packages
|
||||
%else
|
||||
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
|
||||
%define apache_serverroot /var/www/html
|
||||
%define apache_myserverroot /var/www/html
|
||||
%define apache_confdir /etc/httpd/conf.d
|
||||
%define apache_user apache
|
||||
%define apache_group apache
|
||||
%define __jar_repack 0
|
||||
%else
|
||||
%define apache_serverroot /var/www
|
||||
%define apache_myserverroot /var/www
|
||||
%define apache_confdir /etc/httpd/conf.d
|
||||
%define apache_user www
|
||||
%define apache_group www
|
||||
@@ -47,7 +47,7 @@
|
||||
%endif
|
||||
|
||||
Name: nextcloud
|
||||
Version: 29.0.7
|
||||
Version: 31.0.4
|
||||
Release: 0
|
||||
Summary: File hosting service
|
||||
License: AGPL-3.0-only
|
||||
@@ -85,8 +85,8 @@ Requires: php-posix
|
||||
Requires: php-zip
|
||||
#
|
||||
%if 0%{?fedora_version} || 0%{?rhel} || 0%{?rhel_version} || 0%{?centos_version}
|
||||
Requires: php < 8.4.0
|
||||
Requires: php >= 8.1.0
|
||||
Requires: php < 8.5.0
|
||||
Requires: php >= 8.2.0
|
||||
Requires: php-process
|
||||
Requires: php-xml
|
||||
Recommends: sqlite
|
||||
@@ -140,8 +140,8 @@ Group: Productivity/Networking/Web/Utilities
|
||||
BuildRequires: apache2 >= 2.4
|
||||
Requires: %{name} = %{version}
|
||||
Requires: apache2
|
||||
Requires: mod_php_any < 8.4.0
|
||||
Requires: mod_php_any >= 8.1.0
|
||||
Requires: mod_php_any < 8.5.0
|
||||
Requires: mod_php_any >= 8.2.0
|
||||
Supplements: packageand(apache2:%name)
|
||||
|
||||
%description apache
|
||||
@@ -174,6 +174,7 @@ mkdir -p $idir
|
||||
mkdir -p $idir/data
|
||||
mkdir -p $idir/search
|
||||
cp -aRf * $idir
|
||||
cp -aRf .reuse $idir
|
||||
cp -aRf .htaccess $idir
|
||||
cp -aRf .user.ini $idir
|
||||
# $idir/l10n to disappear in future
|
||||
@@ -185,15 +186,14 @@ fi
|
||||
|
||||
# create the AllowOverride directive
|
||||
install -p -D -m 644 %{SOURCE1} $RPM_BUILD_ROOT/%{apache_confdir}/nextcloud.conf
|
||||
ocpath="%{apache_myserverroot}/%{name}"
|
||||
sed -i -e"s|@DATAPATH@|${ocpath}|g" $RPM_BUILD_ROOT/%{apache_confdir}/nextcloud.conf
|
||||
ncpath="%{apache_myserverroot}/%{name}"
|
||||
sed -i -e"s|@DATAPATH@|${ncpath}|g" $RPM_BUILD_ROOT/%{apache_confdir}/nextcloud.conf
|
||||
|
||||
# not needed for distro packages
|
||||
rm -f ${idir}/indie.json
|
||||
|
||||
%if 0%{?suse_version}
|
||||
# link duplicate doc files
|
||||
%fdupes -s $RPM_BUILD_ROOT/%{apache_myserverroot}/%{name}
|
||||
%fdupes %buildroot%{apache_myserverroot}/%{name}
|
||||
%endif
|
||||
|
||||
# CronJob
|
||||
@@ -274,15 +274,16 @@ fi
|
||||
if [ -s %{statedir}/occ_maintenance_mode_during_nextcloud_install ]; then
|
||||
echo "o %{name} post-install: occ maintenance:repair (fix possible errors)"
|
||||
su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ maintenance:repair" || true
|
||||
su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ maintenance:repair --include-expensive" || true
|
||||
echo "o %{name} post-install: occ update apps"
|
||||
su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ app:update --all" || true
|
||||
echo "o %{name} post-install: occ upgrade"
|
||||
su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ upgrade" || true
|
||||
echo "o %{name} post-install: occ db:add-missing-* (add missing db things)"
|
||||
su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ maintenance:mimetype:update-db" || true
|
||||
su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ db:add-missing-columns" || true
|
||||
su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ db:add-missing-indices" || true
|
||||
su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ db:add-missing-primary-keys" || true
|
||||
echo "o %{name} post-install: occ update apps"
|
||||
su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ app:update --all" || true
|
||||
echo "o %{name} post-install: occ upgrade"
|
||||
su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ upgrade" || true
|
||||
echo "o %{name} post-install: occ maintenance:mode --off"
|
||||
su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ maintenance:mode --off" || true
|
||||
fi
|
||||
@@ -312,6 +313,8 @@ fi
|
||||
%{_sbindir}/rc%{name}-cron
|
||||
%{_unitdir}/%{name}-cron.service
|
||||
%{_unitdir}/%{name}-cron.timer
|
||||
%dir %{apache_serverroot}
|
||||
%dir %{apache_myserverroot}
|
||||
%{apache_myserverroot}/%{name}
|
||||
%attr(-,%{apache_user},%{apache_group}) %{apache_myserverroot}/%{name}/occ
|
||||
%config(noreplace) %{apache_myserverroot}/%{name}/.user.ini
|
||||
|
||||
Reference in New Issue
Block a user