mirror of
https://github.com/YunoHost-Apps/glitchsoc_ynh.git
synced 2024-09-03 19:15:59 +02:00
Upgraded to version 2.7.0
This commit is contained in:
parent
95745611d4
commit
6a0aab6a93
6 changed files with 21 additions and 21 deletions
|
@ -1,6 +1,6 @@
|
||||||
# Mastodon for YunoHost
|
# Mastodon for YunoHost
|
||||||
|
|
||||||
[![Latest Version](https://img.shields.io/badge/version-2.6.5-green.svg?style=flat)](https://github.com/YunoHost-Apps/mastodon_ynh/releases)
|
[![Latest Version](https://img.shields.io/badge/version-2.7.0-green.svg?style=flat)](https://github.com/YunoHost-Apps/mastodon_ynh/releases)
|
||||||
[![Status](https://img.shields.io/badge/status-testing-yellow.svg?style=flat)](https://github.com/YunoHost-Apps/mastodon_ynh/milestones)
|
[![Status](https://img.shields.io/badge/status-testing-yellow.svg?style=flat)](https://github.com/YunoHost-Apps/mastodon_ynh/milestones)
|
||||||
[![Dependencies](https://img.shields.io/badge/dependencies-includes-lightgrey.svg?style=flat)](https://github.com/YunoHost-Apps/mastodon_ynh#dependencies)
|
[![Dependencies](https://img.shields.io/badge/dependencies-includes-lightgrey.svg?style=flat)](https://github.com/YunoHost-Apps/mastodon_ynh#dependencies)
|
||||||
[![GitHub license](https://img.shields.io/badge/license-GPLv3-blue.svg?style=flat)](https://raw.githubusercontent.com/YunoHost-Apps/mastodon_ynh/master/LICENSE)
|
[![GitHub license](https://img.shields.io/badge/license-GPLv3-blue.svg?style=flat)](https://raw.githubusercontent.com/YunoHost-Apps/mastodon_ynh/master/LICENSE)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
SOURCE_URL=https://github.com/tootsuite/mastodon/archive/v2.6.5.tar.gz
|
SOURCE_URL=https://github.com/tootsuite/mastodon/archive/v2.7.0.tar.gz
|
||||||
SOURCE_SUM=697cb060f178a88c6f2a730d3ac9234babf9aa04d11086693a3e64e7ea1b1d62
|
SOURCE_SUM=429d2be660aff3d77960ae87412ad7de82dab9c21363e2799db34948d2231d7b
|
||||||
SOURCE_SUM_PRG=sha256sum
|
SOURCE_SUM_PRG=sha256sum
|
||||||
SOURCE_FORMAT=tar.gz
|
SOURCE_FORMAT=tar.gz
|
||||||
SOURCE_IN_SUBDIR=true
|
SOURCE_IN_SUBDIR=true
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
SOURCE_URL=https://github.com/rbenv/ruby-build/archive/v20181019.tar.gz
|
SOURCE_URL=https://github.com/rbenv/ruby-build/archive/v20181225.tar.gz
|
||||||
SOURCE_SUM=5ac5838e81ac06478aa23de79aefc4196f7d1ba8aa1a3cc03bc6e81708463a9e
|
SOURCE_SUM=5ace4787ace47384dc419b20f5eb5a59f1174e00bfabcfed74a175033cd0b18a
|
||||||
SOURCE_SUM_PRG=sha256sum
|
SOURCE_SUM_PRG=sha256sum
|
||||||
SOURCE_FORMAT=tar.gz
|
SOURCE_FORMAT=tar.gz
|
||||||
SOURCE_IN_SUBDIR=true
|
SOURCE_IN_SUBDIR=true
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"id": "mastodon",
|
"id": "mastodon",
|
||||||
"packaging_format": 1,
|
"packaging_format": 1,
|
||||||
"requirements": {
|
"requirements": {
|
||||||
"yunohost": ">= 2.7.9"
|
"yunohost": ">= 2.7.0"
|
||||||
},
|
},
|
||||||
"description": {
|
"description": {
|
||||||
"en": "Mastodon is a free, open-source social network.",
|
"en": "Mastodon is a free, open-source social network.",
|
||||||
|
|
|
@ -161,14 +161,14 @@ eval \"\$(rbenv init -)\"" > $final_path/.profile
|
||||||
|
|
||||||
# Install ruby-build
|
# Install ruby-build
|
||||||
(
|
(
|
||||||
exec_as "$app" $final_path/.rbenv/bin/rbenv install 2.5.3 || true
|
exec_as "$app" $final_path/.rbenv/bin/rbenv install 2.6.0 || true
|
||||||
exec_as "$app" $final_path/.rbenv/bin/rbenv global 2.5.3 || true
|
exec_as "$app" $final_path/.rbenv/bin/rbenv global 2.6.0 || true
|
||||||
exec_as "$app" $final_path/.rbenv/versions/2.5.3/bin/ruby -v
|
exec_as "$app" $final_path/.rbenv/versions/2.6.0/bin/ruby -v
|
||||||
)
|
)
|
||||||
|
|
||||||
# Create symlink for ruby
|
# Create symlink for ruby
|
||||||
rm /usr/bin/ruby || true
|
rm /usr/bin/ruby || true
|
||||||
ln -s $final_path/.rbenv/versions/2.5.3/bin/ruby /usr/bin/ruby || true
|
ln -s $final_path/.rbenv/versions/2.6.0/bin/ruby /usr/bin/ruby || true
|
||||||
|
|
||||||
# Adjust Mastodon config
|
# Adjust Mastodon config
|
||||||
|
|
||||||
|
@ -206,7 +206,7 @@ chown -R "$app": "$final_path"
|
||||||
(
|
(
|
||||||
cd "$final_path/live"
|
cd "$final_path/live"
|
||||||
su mastodon <<INSTALL
|
su mastodon <<INSTALL
|
||||||
$final_path/.rbenv/versions/2.5.3/bin/gem install bundler:1.16.6 --no-ri --no-rdoc
|
$final_path/.rbenv/versions/2.6.0/bin/gem install bundler:1.16.6 --no-ri --no-rdoc
|
||||||
$final_path/live/bin/bundle install \
|
$final_path/live/bin/bundle install \
|
||||||
-j$(getconf _NPROCESSORS_ONLN) \
|
-j$(getconf _NPROCESSORS_ONLN) \
|
||||||
--deployment --without development test
|
--deployment --without development test
|
||||||
|
|
|
@ -144,25 +144,25 @@ chown -R "$app": "$final_path"
|
||||||
|
|
||||||
# Install ruby 2.5.1
|
# Install ruby 2.5.1
|
||||||
(
|
(
|
||||||
exec_as "$app" $final_path/.rbenv/bin/rbenv install -s 2.5.3 || true
|
exec_as "$app" $final_path/.rbenv/bin/rbenv install -s 2.6.0 || true
|
||||||
exec_as "$app" $final_path/.rbenv/bin/rbenv global 2.5.3 || true
|
exec_as "$app" $final_path/.rbenv/bin/rbenv global 2.6.0 || true
|
||||||
exec_as "$app" $final_path/.rbenv/versions/2.5.3/bin/ruby -v
|
exec_as "$app" $final_path/.rbenv/versions/2.6.0/bin/ruby -v
|
||||||
)
|
)
|
||||||
|
|
||||||
# Create symlink for ruby
|
# Create symlink for ruby
|
||||||
rm /usr/bin/ruby || true
|
rm /usr/bin/ruby || true
|
||||||
ln -s $final_path/.rbenv/versions/2.5.3/bin/ruby /usr/bin/ruby || true
|
ln -s $final_path/.rbenv/versions/2.6.0/bin/ruby /usr/bin/ruby || true
|
||||||
|
|
||||||
# Preconfig CSS & JS
|
# Preconfig CSS & JS
|
||||||
# Install Mastodon
|
# Install Mastodon
|
||||||
(
|
(
|
||||||
sudo su - $app <<MCOMMANDS
|
sudo su - $app <<MCOMMANDS
|
||||||
pushd ~/live
|
pushd ~/live
|
||||||
$final_path/.rbenv/versions/2.5.3/bin/gem install bundler
|
$final_path/.rbenv/versions/2.6.0/bin/gem install bundler
|
||||||
if [ "$(lsb_release --codename --short)" == "jessie" ]; then
|
if [ "$(lsb_release --codename --short)" == "jessie" ]; then
|
||||||
$final_path/.rbenv/versions/2.5.3/bin/bundle install --deployment --without development test
|
$final_path/.rbenv/versions/2.6.0/bin/bundle install --deployment --without development test
|
||||||
else
|
else
|
||||||
$final_path/.rbenv/versions/2.5.3/bin/bundle install --deployment --force --without development test
|
$final_path/.rbenv/versions/2.6.0/bin/bundle install --deployment --force --without development test
|
||||||
fi
|
fi
|
||||||
yarn install --pure-lockfile
|
yarn install --pure-lockfile
|
||||||
MCOMMANDS
|
MCOMMANDS
|
||||||
|
@ -177,13 +177,13 @@ popd
|
||||||
# Apply Mastodon upgrade
|
# Apply Mastodon upgrade
|
||||||
(
|
(
|
||||||
pushd $final_path/live
|
pushd $final_path/live
|
||||||
RAILS_ENV=production $final_path/.rbenv/versions/2.5.3/bin/bundle exec rails assets:clean
|
RAILS_ENV=production $final_path/.rbenv/versions/2.6.0/bin/bundle exec rails assets:clean
|
||||||
RAILS_ENV=production $final_path/.rbenv/versions/2.5.3/bin/bundle exec rails assets:precompile
|
RAILS_ENV=production $final_path/.rbenv/versions/2.6.0/bin/bundle exec rails assets:precompile
|
||||||
popd
|
popd
|
||||||
|
|
||||||
sudo su - $app <<COMMANDS
|
sudo su - $app <<COMMANDS
|
||||||
pushd ~/live
|
pushd ~/live
|
||||||
RAILS_ENV=production $final_path/.rbenv/versions/2.5.3/bin/bundle exec rails db:migrate
|
RAILS_ENV=production $final_path/.rbenv/versions/2.6.0/bin/bundle exec rails db:migrate
|
||||||
COMMANDS
|
COMMANDS
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue