Skip to content

Commit

Permalink
Merge pull request #655 from YunoHost-Apps/testing
Browse files Browse the repository at this point in the history
Testing
  • Loading branch information
alexAubin authored Jan 28, 2024
2 parents 3e60bac + 63f4a43 commit fabf014
Show file tree
Hide file tree
Showing 29 changed files with 130 additions and 232 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ In addition to Nextcloud core features, the following are made available with th
* Serve `/.well-known` paths for CalDAV and CardDAV on the domain only if it's not already served - i.e. by Baïkal


**Shipped version:** 28.0.1~ynh1
**Shipped version:** 28.0.1~ynh2

**Demo:** https://demo.nextcloud.com/

Expand Down
2 changes: 1 addition & 1 deletion README_fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ En plus des fonctionnalités principales de Nextcloud, les fonctionnalités suiv
* Utilise l'adresse `/.well-known` pour la synchronisation CalDAV et CardDAV du domaine si aucun autre service ne l'utilise déjà - par exemple, Baïkal


**Version incluse :** 28.0.1~ynh1
**Version incluse :** 28.0.1~ynh2

**Démo :** https://demo.nextcloud.com/

Expand Down
2 changes: 1 addition & 1 deletion doc/ADMIN.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
You can run Nextcloud commands from the command line using:

```
sudo -u __APP__ php__YNH_PHP_VERSION__ --define apc.enable_cli=1 __INSTALL_DIR__/occ ...
sudo -u __APP__ php__PHPVERSION__ --define apc.enable_cli=1 __INSTALL_DIR__/occ ...
```

Alternatively, you may open a 'Nextcloud shell' with `sudo yunohost app shell __APP__`, then run `php occ ...`
Expand Down
2 changes: 1 addition & 1 deletion doc/ADMIN_fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Vous pouvez lancer des commandes Nextcloud depuis la ligne de commande avec:

```
sudo -u __APP__ php__YNH_PHP_VERSION__ --define apc.enable_cli=1 __INSTALL_DIR__/occ ...
sudo -u __APP__ php__PHPVERSION__ --define apc.enable_cli=1 __INSTALL_DIR__/occ ...
```

Ou bien, vous pouvez ouvrir un "shell Nextcloud" avec `sudo yunohost app shell __APP__`, puis lancer `php occ ...`
Expand Down
3 changes: 3 additions & 0 deletions doc/PRE_UPGRADE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
If you are upgrading to a new major version of Nextcloud, please make sure that your Nextcloud apps are up to date from Nextcloud's administration panel beforehand.

Additionally, if you installed specific Nextcloud apps, we recommend making sure that they are compatible with the new major version. YunoHost will attempt to check this automatically at the very beginning of the upgrade, but a manual check doesn't hurt either. For Nextcloud 28, this forum thread might be helpful : <https://help.nextcloud.com/t/apps-not-compatible-with-nc-28/176234>.
40 changes: 36 additions & 4 deletions manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name = "Nextcloud"
description.en = "Online storage, file sharing platform and various other applications"
description.fr = "Stockage en ligne, plateforme de partage de fichiers et diverses autres applications"

version = "28.0.1~ynh1"
version = "28.0.1~ynh2"

maintainers = ["kay0u"]

Expand All @@ -27,8 +27,8 @@ ldap = true

sso = true

disk = "50M"
ram.build = "500M"
disk = "650M"
ram.build = "250M"
ram.runtime = "512M"

[install]
Expand All @@ -55,6 +55,38 @@ ram.runtime = "512M"
default = false

[resources]

[resources.sources]

[resources.sources.main]
url = 'https://download.nextcloud.com/server/releases/nextcloud-28.0.1.tar.bz2'
sha256 = '2f80735b443082272fe6a3b5e32137957f1fc448c75342b94b5200b29725f3a4'

[resources.sources.27]
url = 'https://download.nextcloud.com/server/releases/nextcloud-27.0.0.tar.bz2'
sha256 = '3d312a09b9345ac058758dd7b4059bf3cf0b1f0f1d747251b6fac3585ba6533f'
prefetch = false

[resources.sources.26]
url = 'https://download.nextcloud.com/server/releases/nextcloud-26.0.0.tar.bz2'
sha256 = 'f163150363aee9366ecb5cd5259bf6756ed4f073cea78b5fa515cada7a0d0c3d'
prefetch = false

[resources.sources.25]
url = 'https://download.nextcloud.com/server/releases/nextcloud-25.0.0.tar.bz2'
sha256 = '2c05ac9d7b72b44ef8b3d2ae03ff0fd6121e254b8054556f5163bd8760dd8f49'
prefetch = false

[resources.sources.24]
url = 'https://download.nextcloud.com/server/releases/nextcloud-24.0.0.tar.bz2'
sha256 = '176cb5620f20465fb4759bdf3caaebeb7acff39d6c8630351af9f8738c173780'
prefetch = false

[resources.sources.23]
url = 'https://download.nextcloud.com/server/releases/nextcloud-23.0.0.tar.bz2'
sha256 = 'c37592abc3b65c8fd28459281a24f414b87af52fc8c2ea979be3f9be75d01a2c'
prefetch = false

[resources.system_user]
allow_email = true

Expand All @@ -77,4 +109,4 @@ ram.runtime = "512M"

[resources.database]
type = "mysql"


2 changes: 1 addition & 1 deletion scripts/change_url
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ fi
#=================================================
ynh_script_progression --message="Configuring permissions..."

# Temporary fix for the API permission
# Temporary fix for the API permission (workaround for https://github.com/YunoHost/issues/issues/2294 )
ynh_permission_url --permission="api" --url="re:$new_domain\/.well-known\/.*" --auth_header="false" --clear_urls

#=================================================
Expand Down
18 changes: 3 additions & 15 deletions scripts/install
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,6 @@ ynh_mysql_connect_as --user=$db_user --password="$db_pwd" --database=$db_name \
#=================================================
ynh_script_progression --message="Setting up source files..." --weight=5

# Load the last available version
source upgrade.d/upgrade.last.sh

# Create an app.src for the last version of nextcloud
cat > ../conf/app.src << EOF
SOURCE_URL=https://download.nextcloud.com/server/releases/nextcloud-$next_version.tar.bz2
SOURCE_SUM=$nextcloud_source_sha256
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.bz2
SOURCE_IN_SUBDIR=true
EOF

# Enable YunoHost patches on Nextcloud sources
cp -a ../sources/patches_last_version/* ../sources/patches
# Download, check integrity, uncompress and patch the source from app.src
Expand Down Expand Up @@ -108,7 +96,7 @@ exec_occ ldap:create-empty-config

# Load the installation config file in Nextcloud
nc_conf="$install_dir/config_install.json"
ynh_add_config --template="../conf/config_install.json" --destination="$nc_conf"
ynh_add_config --template="config_install.json" --destination="$nc_conf"

exec_occ config:import "$nc_conf"

Expand All @@ -117,7 +105,7 @@ ynh_secure_remove --file="$nc_conf"

# Load the additional config file (used also for upgrade)
nc_conf="$install_dir/config.json"
ynh_add_config --template="../conf/config.json" --destination="$nc_conf"
ynh_add_config --template="config.json" --destination="$nc_conf"

exec_occ config:import "$nc_conf"

Expand Down Expand Up @@ -201,7 +189,7 @@ ynh_store_file_checksum --file="$install_dir/config/config.php"
#=================================================

cron_path="/etc/cron.d/$app"
ynh_add_config --template="../conf/nextcloud.cron" --destination="$cron_path"
ynh_add_config --template="nextcloud.cron" --destination="$cron_path"
chown root: "$cron_path"
chmod 644 "$cron_path"

Expand Down
Loading

0 comments on commit fabf014

Please sign in to comment.