aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authornemsia <nemsia@nemsia.org>2017-07-25 13:39:31 +0200
committerGitHub <noreply@github.com>2017-07-25 13:39:31 +0200
commit40e66c5983fa5830686e4deac6f332e102fbd58c (patch)
tree9de9fb27a293344d15882edefb787005dcb207f5 /scripts
parent0d65ed87d9c1d63756e70e8574b29f64f8cb6903 (diff)
downloadmastodon_ynh-40e66c5983fa5830686e4deac6f332e102fbd58c.tar.gz
mastodon_ynh-40e66c5983fa5830686e4deac6f332e102fbd58c.tar.bz2
mastodon_ynh-40e66c5983fa5830686e4deac6f332e102fbd58c.zip
Upgrade 1.5.0 (#48)
* Add libicu-dev and libidn11-dev
Diffstat (limited to 'scripts')
-rw-r--r--scripts/install2
-rw-r--r--scripts/upgrade4
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/install b/scripts/install
index f769a8b..f32252f 100644
--- a/scripts/install
+++ b/scripts/install
@@ -41,7 +41,7 @@ ynh_app_setting_set $app language $language
sudo adduser $app --home /opt/$app --gecos "First Last,RoomNumber,WorkPhone,HomePhone" --disabled-password --disabled-login
# Install debian package
-ynh_package_install imagemagick libpq-dev libxml2-dev libxslt1-dev file curl apt-transport-https pkg-config libprotobuf-dev protobuf-compiler
+ynh_package_install imagemagick libpq-dev libxml2-dev libxslt1-dev file curl apt-transport-https pkg-config libprotobuf-dev protobuf-compiler libicu-dev libidn11-dev
# Install redis package
ynh_package_install redis-server redis-tools
diff --git a/scripts/upgrade b/scripts/upgrade
index dae1d8d..99ae13f 100644
--- a/scripts/upgrade
+++ b/scripts/upgrade
@@ -65,7 +65,7 @@ if [[ $node_version =~ ^v4.*$ ]]; then
fi
# add additional package for release 1.4
-ynh_package_install pkg-config libprotobuf-dev protobuf-compiler
+ynh_package_install pkg-config libprotobuf-dev protobuf-compiler libicu-dev libidn11-dev
# Apply Mastodon upgrade
sudo su - $app <<COMMANDS
@@ -73,7 +73,7 @@ pushd ~/live
bin/bundle install
yarn install --pure-lockfile
# For 1.4.1 -> 1.4.2 migration prepare_for_foreign_keys is needed
-RAILS_ENV=production bundle exec rails mastodon:maintenance:prepare_for_foreign_keys
+RAILS_ENV=production bundle exec rails mastodon:maintenance:prepare_for_foreign_keys
RAILS_ENV=production bundle exec rails assets:clean
RAILS_ENV=production bundle exec rails assets:precompile
RAILS_ENV=production bundle exec rails db:migrate