mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
commit
962cc61ec8
11 changed files with 111 additions and 84 deletions
|
@ -5,7 +5,7 @@ Nextcloud for YunoHost
|
|||
own data. A personal cloud which run on your own server. With Nextcloud
|
||||
you can synchronize your files over your devices.
|
||||
|
||||
**Shipped version:** 12.0.4
|
||||
**Shipped version:** 12.0.5
|
||||
|
||||
[](https://install-app.yunohost.org/?app=nextcloud)
|
||||

|
||||
|
|
|
@ -1,13 +1,16 @@
|
|||
{
|
||||
"system": {
|
||||
"datadirectory": "#DATADIR#",
|
||||
"trusted_domains": [
|
||||
"localhost",
|
||||
"#DOMAIN#"
|
||||
],
|
||||
"updatechecker": false,
|
||||
"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": {
|
||||
"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;
|
||||
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
|
||||
gzip off;
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"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"
|
||||
},
|
||||
"version": "12.0.4-1",
|
||||
"version": "12.0.5-1",
|
||||
"url": "https://nextcloud.com",
|
||||
"license": "AGPL-3.0",
|
||||
"maintainer": {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# COMMON VARIABLES
|
||||
#=================================================
|
||||
|
||||
pkg_dependencies="php5-gd php5-json php5-intl php5-mcrypt php5-curl php5-apcu php5-imagick acl tar smbclient"
|
||||
pkg_dependencies="php5-gd php5-json php5-intl php5-mcrypt php5-curl php5-apcu php5-redis php5-imagick imagemagick acl tar smbclient"
|
||||
|
||||
#=================================================
|
||||
# COMMON HELPERS
|
||||
|
|
|
@ -144,11 +144,6 @@ exec_occ maintenance:install \
|
|||
# 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
|
||||
exec_occ app:disable updatenotification
|
||||
|
||||
|
@ -156,7 +151,18 @@ exec_occ app:disable updatenotification
|
|||
exec_occ app:enable user_ldap
|
||||
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"
|
||||
# Then remove it
|
||||
rm -f "$nc_conf"
|
||||
|
@ -216,6 +222,8 @@ ynh_store_file_checksum "${final_path}/config/config.php"
|
|||
|
||||
cron_path="/etc/cron.d/$app"
|
||||
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 "#DESTDIR#" "$final_path" "$cron_path"
|
||||
|
|
|
@ -286,6 +286,8 @@ ynh_store_file_checksum "${final_path}/config/config.php"
|
|||
|
||||
cron_path="/etc/cron.d/$app"
|
||||
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 "#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)
|
||||
ynh_use_logrotate
|
||||
ynh_use_logrotate --non-append
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Last available nextcloud version
|
||||
next_version="12.0.4"
|
||||
next_version="12.0.5"
|
||||
|
||||
# Nextcloud tarball checksum sha256
|
||||
nextcloud_source_sha256="654161a74ceaf9a60c7731d7d6702e6710a972633a97955d16f01abeb09d09b6"
|
||||
nextcloud_source_sha256="c8be29ace6821079e881818266fe49d28812b5aa0c7d2e76511173d48828ca43"
|
||||
|
|
Loading…
Add table
Reference in a new issue