1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/discourse_ynh.git synced 2024-09-03 18:26:18 +02:00

Upgrade to upstream version 2.2.3

This commit is contained in:
Jimmy Monin 2019-03-15 19:50:18 +01:00
parent 3909917e98
commit 582d5097bb
5 changed files with 20 additions and 4 deletions

View file

@ -32,7 +32,7 @@ Finally, if installing on a low-end ARM device (e.g. Raspberry Pi):
To learn more about the philosophy and goals of the project, [visit **discourse.org**](http://www.discourse.org). To learn more about the philosophy and goals of the project, [visit **discourse.org**](http://www.discourse.org).
**Shipped version:** 2.2.2 **Shipped version:** 2.2.3
## Screenshots ## Screenshots

View file

@ -1,3 +1,3 @@
SOURCE_URL=https://github.com/discourse/discourse/archive/v2.2.2.tar.gz SOURCE_URL=https://github.com/discourse/discourse/archive/v2.2.3.tar.gz
SOURCE_SUM=0bd09791c3877b162150babc0c5001cb784cef6f024aa5918d2e2b6b5100b5d1 SOURCE_SUM=401f0a0e94fd55c158bbc4519d8147233ca9987f59bac13519d976456b31d279
SOURCE_FORMAT=tar.gz SOURCE_FORMAT=tar.gz

View file

@ -6,7 +6,7 @@
"en": "Discussion platform", "en": "Discussion platform",
"fr": "Plateforme de discussion" "fr": "Plateforme de discussion"
}, },
"version": "2.2.2~ynh1", "version": "2.2.3~ynh1",
"url": "http://Discourse.org", "url": "http://Discourse.org",
"license": "GPL-2.0", "license": "GPL-2.0",
"maintainer": { "maintainer": {

View file

@ -305,6 +305,14 @@ ynh_add_systemd_config
mkdir -p "$final_path/tmp/pids" mkdir -p "$final_path/tmp/pids"
mkdir "$final_path/tmp/sockets" mkdir "$final_path/tmp/sockets"
# Create specific folders and links for subfolder compatibility
# (see: https://meta.discourse.org/t/subfolder-support-with-docker/30507)
(
cd $final_path
mkdir -p "public/forum"
cd public/forum && ln -s ../uploads && ln -s ../backups
)
# Set permissions to app files # Set permissions to app files
chown -R $app: $final_path chown -R $app: $final_path
# Restrict rights to log directory (needed by logrotate) # Restrict rights to log directory (needed by logrotate)

View file

@ -254,6 +254,14 @@ if ! ynh_is_upstream_up_to_date ; then
mkdir -p "$final_path/tmp/pids" mkdir -p "$final_path/tmp/pids"
mkdir "$final_path/tmp/sockets" mkdir "$final_path/tmp/sockets"
# Create specific folders and links for subfolder compatibilityn
# (see: https://meta.discourse.org/t/subfolder-support-with-docker/30507)
(
cd $final_path
mkdir -p "public/forum"
cd public/forum && ln -s ../uploads && ln -s ../backups
)
# Set permissions to app files # Set permissions to app files
chown -R $app: $final_path chown -R $app: $final_path
# Restrict rights to log directory (needed by logrotate) # Restrict rights to log directory (needed by logrotate)