mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
Merge branch 'testing' into patch-2
This commit is contained in:
commit
8bcc16539e
14 changed files with 134 additions and 98 deletions
|
@ -5,7 +5,7 @@ Nextcloud for YunoHost
|
||||||
own data. A personal cloud which run on your own server. With Nextcloud
|
own data. A personal cloud which run on your own server. With Nextcloud
|
||||||
you can synchronize your files over your devices.
|
you can synchronize your files over your devices.
|
||||||
|
|
||||||
**Shipped version:** 12.0.2
|
**Shipped version:** 12.0.5
|
||||||
|
|
||||||
[](https://install-app.yunohost.org/?app=nextcloud)
|
[](https://install-app.yunohost.org/?app=nextcloud)
|
||||||

|

|
||||||
|
|
|
@ -1,13 +1,16 @@
|
||||||
{
|
{
|
||||||
"system": {
|
"system": {
|
||||||
"datadirectory": "#DATADIR#",
|
|
||||||
"trusted_domains": [
|
|
||||||
"localhost",
|
|
||||||
"#DOMAIN#"
|
|
||||||
],
|
|
||||||
"updatechecker": false,
|
"updatechecker": false,
|
||||||
"memcache.local": "\\OC\\Memcache\\APCu",
|
"memcache.local": "\\OC\\Memcache\\APCu",
|
||||||
"integrity.check.disabled": true
|
"integrity.check.disabled": true,
|
||||||
|
"filelocking.enabled": true,
|
||||||
|
"memcache.locking": "\\OC\\Memcache\\Redis",
|
||||||
|
"redis": {
|
||||||
|
"host": "localhost",
|
||||||
|
"port": "6379",
|
||||||
|
"timeout": "0.0",
|
||||||
|
"password": ""
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"apps": {
|
"apps": {
|
||||||
"user_ldap": {
|
"user_ldap": {
|
||||||
|
|
9
conf/config_install.json
Normal file
9
conf/config_install.json
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"system": {
|
||||||
|
"datadirectory": "#DATADIR#",
|
||||||
|
"trusted_domains": [
|
||||||
|
"localhost",
|
||||||
|
"#DOMAIN#"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
|
@ -24,6 +24,11 @@ location ^~ __PATH__ {
|
||||||
client_max_body_size 10G;
|
client_max_body_size 10G;
|
||||||
fastcgi_buffers 64 4K;
|
fastcgi_buffers 64 4K;
|
||||||
|
|
||||||
|
# Extend timeouts
|
||||||
|
client_body_timeout 60m;
|
||||||
|
proxy_read_timeout 60m;
|
||||||
|
fastcgi_read_timeout 60m;
|
||||||
|
|
||||||
# Disable gzip to avoid the removal of the ETag header
|
# Disable gzip to avoid the removal of the ETag header
|
||||||
gzip off;
|
gzip off;
|
||||||
|
|
||||||
|
|
|
@ -365,6 +365,7 @@ catch_workers_output = yes
|
||||||
;env[TMP] = /tmp
|
;env[TMP] = /tmp
|
||||||
;env[TMPDIR] = /tmp
|
;env[TMPDIR] = /tmp
|
||||||
;env[TEMP] = /tmp
|
;env[TEMP] = /tmp
|
||||||
|
env[PATH] = $PATH
|
||||||
|
|
||||||
; Additional php.ini defines, specific to this pool of workers. These settings
|
; Additional php.ini defines, specific to this pool of workers. These settings
|
||||||
; overwrite the values previously defined in the php.ini. The directives are the
|
; overwrite the values previously defined in the php.ini. The directives are the
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
"en": "Access & share your files, calendars, contacts, mail & more from any device, on your terms",
|
"en": "Access & share your files, calendars, contacts, mail & more from any device, on your terms",
|
||||||
"fr": "Consultez et partagez vos fichiers, agendas, carnets d'adresses, emails et bien plus depuis les appareils de votre choix, sous vos conditions"
|
"fr": "Consultez et partagez vos fichiers, agendas, carnets d'adresses, emails et bien plus depuis les appareils de votre choix, sous vos conditions"
|
||||||
},
|
},
|
||||||
"version": "12.0.2",
|
"version": "12.0.5-1",
|
||||||
"url": "https://nextcloud.com",
|
"url": "https://nextcloud.com",
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3.0",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
"name": "-",
|
"name": "-",
|
||||||
"email": "-"
|
"email": "-"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# COMMON VARIABLES
|
# COMMON VARIABLES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
pkg_dependencies="php5-gd php5-json php5-intl php5-mcrypt php5-curl php5-apcu php5-imagick php5-ldap acl tar smbclient"
|
pkg_dependencies="php5-gd php5-json php5-intl php5-mcrypt php5-curl php5-apcu php5-redis php5-ldap php5-imagick imagemagick acl tar smbclient"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# COMMON HELPERS
|
# COMMON HELPERS
|
||||||
|
|
|
@ -3,11 +3,6 @@
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC START
|
# GENERIC START
|
||||||
#=================================================
|
#=================================================
|
||||||
# MANAGE SCRIPT FAILURE
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
# Exit on command errors and treat access to unset variables as an error
|
|
||||||
set -eu
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# IMPORT GENERIC HELPERS
|
# IMPORT GENERIC HELPERS
|
||||||
|
@ -21,6 +16,13 @@ fi
|
||||||
source _common.sh
|
source _common.sh
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# MANAGE SCRIPT FAILURE
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
# Exit if an error occurs during the execution of the script
|
||||||
|
ynh_abort_if_errors
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# LOAD SETTINGS
|
# LOAD SETTINGS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -82,5 +84,5 @@ if [ -z $backup_core_only ]
|
||||||
then
|
then
|
||||||
ynh_backup "/home/yunohost.app/${app}/data"
|
ynh_backup "/home/yunohost.app/${app}/data"
|
||||||
else
|
else
|
||||||
echo "Data dir will not saved, because backup_core_only is set." >&2
|
echo "Data dir will not be saved, because backup_core_only is set." >&2
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -144,11 +144,6 @@ exec_occ maintenance:install \
|
||||||
# CONFIGURE NEXTCLOUD
|
# CONFIGURE NEXTCLOUD
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
nc_conf="${final_path}/config.json"
|
|
||||||
cp ../conf/config.json "$nc_conf"
|
|
||||||
ynh_replace_string "#DOMAIN#" "$domain" "$nc_conf"
|
|
||||||
ynh_replace_string "#DATADIR#" "$datadir" "$nc_conf"
|
|
||||||
|
|
||||||
# Ensure that UpdateNotification app is disabled
|
# Ensure that UpdateNotification app is disabled
|
||||||
exec_occ app:disable updatenotification
|
exec_occ app:disable updatenotification
|
||||||
|
|
||||||
|
@ -156,7 +151,18 @@ exec_occ app:disable updatenotification
|
||||||
exec_occ app:enable user_ldap
|
exec_occ app:enable user_ldap
|
||||||
exec_occ ldap:create-empty-config
|
exec_occ ldap:create-empty-config
|
||||||
|
|
||||||
# Load the config file in nextcloud
|
# Load the installation config file in nextcloud
|
||||||
|
nc_conf="${final_path}/config_install.json"
|
||||||
|
cp ../conf/config_install.json "$nc_conf"
|
||||||
|
ynh_replace_string "#DOMAIN#" "$domain" "$nc_conf"
|
||||||
|
ynh_replace_string "#DATADIR#" "$datadir" "$nc_conf"
|
||||||
|
exec_occ config:import "$nc_conf"
|
||||||
|
# Then remove it
|
||||||
|
rm -f "$nc_conf"
|
||||||
|
|
||||||
|
# Load the additional config file (used also for upgrade)
|
||||||
|
nc_conf="${final_path}/config_install.json"
|
||||||
|
cp ../conf/config.json "$nc_conf"
|
||||||
exec_occ config:import "$nc_conf"
|
exec_occ config:import "$nc_conf"
|
||||||
# Then remove it
|
# Then remove it
|
||||||
rm -f "$nc_conf"
|
rm -f "$nc_conf"
|
||||||
|
@ -216,6 +222,8 @@ ynh_store_file_checksum "${final_path}/config/config.php"
|
||||||
|
|
||||||
cron_path="/etc/cron.d/$app"
|
cron_path="/etc/cron.d/$app"
|
||||||
cp -a ../conf/nextcloud.cron "$cron_path"
|
cp -a ../conf/nextcloud.cron "$cron_path"
|
||||||
|
chown root: "$cron_path"
|
||||||
|
chmod 644 "$cron_path"
|
||||||
|
|
||||||
ynh_replace_string "#USER#" "$app" "$cron_path"
|
ynh_replace_string "#USER#" "$app" "$cron_path"
|
||||||
ynh_replace_string "#DESTDIR#" "$final_path" "$cron_path"
|
ynh_replace_string "#DESTDIR#" "$final_path" "$cron_path"
|
||||||
|
|
|
@ -3,11 +3,6 @@
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC START
|
# GENERIC START
|
||||||
#=================================================
|
#=================================================
|
||||||
# MANAGE SCRIPT FAILURE
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
# Exit on command errors and treat access to unset variables as an error
|
|
||||||
set -eu
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# IMPORT GENERIC HELPERS
|
# IMPORT GENERIC HELPERS
|
||||||
|
@ -21,6 +16,13 @@ fi
|
||||||
source _common.sh
|
source _common.sh
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# MANAGE SCRIPT FAILURE
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
# Exit if an error occurs during the execution of the script
|
||||||
|
ynh_abort_if_errors
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# LOAD SETTINGS
|
# LOAD SETTINGS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -102,12 +104,16 @@ ynh_restore_file "/etc/logrotate.d/$app"
|
||||||
# RESTORE THE DATA DIRECTORY
|
# RESTORE THE DATA DIRECTORY
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
|
datadir="/home/yunohost.app/${app}/data"
|
||||||
|
|
||||||
# The data directory will be restored only if it exists in the backup archive
|
# The data directory will be restored only if it exists in the backup archive
|
||||||
# So only if it was backup previously.
|
# So only if it was backup previously.
|
||||||
if [ -d "$YNH_BACKUP_DIR/data" ]
|
if [ -d "$YNH_BACKUP_DIR/apps/$app/backup/home/yunohost.app/$app" ]
|
||||||
then
|
then
|
||||||
datadir="/home/yunohost.app/${app}/data"
|
|
||||||
ynh_restore_file "$datadir"
|
ynh_restore_file "$datadir"
|
||||||
|
else
|
||||||
|
# Create app folders
|
||||||
|
mkdir -p "$datadir"
|
||||||
fi
|
fi
|
||||||
# Remove the option backup_core_only if it's in the settings.yml file
|
# Remove the option backup_core_only if it's in the settings.yml file
|
||||||
ynh_app_setting_delete $app backup_core_only
|
ynh_app_setting_delete $app backup_core_only
|
||||||
|
|
|
@ -286,6 +286,8 @@ ynh_store_file_checksum "${final_path}/config/config.php"
|
||||||
|
|
||||||
cron_path="/etc/cron.d/$app"
|
cron_path="/etc/cron.d/$app"
|
||||||
cp -a ../conf/nextcloud.cron "$cron_path"
|
cp -a ../conf/nextcloud.cron "$cron_path"
|
||||||
|
chown root: "$cron_path"
|
||||||
|
chmod 644 "$cron_path"
|
||||||
|
|
||||||
ynh_replace_string "#USER#" "$app" "$cron_path"
|
ynh_replace_string "#USER#" "$app" "$cron_path"
|
||||||
ynh_replace_string "#DESTDIR#" "$final_path" "$cron_path"
|
ynh_replace_string "#DESTDIR#" "$final_path" "$cron_path"
|
||||||
|
@ -334,7 +336,7 @@ they are probably disabled and you'll have to manually enable them again." >&2
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Use logrotate to manage app-specific logfile(s)
|
# Use logrotate to manage app-specific logfile(s)
|
||||||
ynh_use_logrotate
|
ynh_use_logrotate --non-append
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Last available nextcloud version
|
# Last available nextcloud version
|
||||||
next_version="12.0.2"
|
next_version="12.0.5"
|
||||||
|
|
||||||
# Nextcloud tarball checksum sha256
|
# Nextcloud tarball checksum sha256
|
||||||
nextcloud_source_sha256="eb34d6cb9f55ee84bf2ad847b4b08cdb925321848ffa2264a9b1566e7b21a17c"
|
nextcloud_source_sha256="c8be29ace6821079e881818266fe49d28812b5aa0c7d2e76511173d48828ca43"
|
||||||
|
|
Loading…
Add table
Reference in a new issue