1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/glitchsoc_ynh.git synced 2024-09-03 19:15:59 +02:00

Fix migrated stretch upgrade (#88)

* upgrade-2.3.3

upgrade-2.3.3
git fetch with all tags forced

* Upgrade 2.4.0 (#21)

* Upgrade 2.4 (#79)

* Upgrade rb to 2.5.1

* Update upgrade

* Fix 2.3.3

* Add trace on assets:precompile

* Yarn install and precompile

Update 2.4 need root to yarn install and precompile, 
Temporary bad fix.

* Update upgrade

* Fix migrate

* Update README.md

* Update manifest.json

* Upgrade yarn to 1.7.0

* Restart postgresql on upgrade

* Ready to Debian Stretch (#22)

* Ready to Debian Stretch

* rb 2.5.1 on install

* Yarn install on root

* rails precompile fix

* Fix backup on stretch

* clean

* fix backup stretch

* Change systemd mastodon service restart

* Change systemd script for stretch

* Ready to mastodon 2.4.1

* Fix migrated stretch (#23)

* Force bundle re-install

* Add check debian on upgrade and clean check
This commit is contained in:
nemsia 2018-06-12 15:33:34 +02:00 committed by GitHub
parent 64d3147a7b
commit ba3ce5d001
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 7 deletions

View file

@ -32,8 +32,7 @@ ynh_backup "/etc/cron.d/${app}" "cron.conf"
ynh_backup "/etc/systemd/system/mastodon-web.service" "systemd_web.service" ynh_backup "/etc/systemd/system/mastodon-web.service" "systemd_web.service"
ynh_backup "/etc/systemd/system/mastodon-sidekiq.service" "systemd_sidekiq.service" ynh_backup "/etc/systemd/system/mastodon-sidekiq.service" "systemd_sidekiq.service"
ynh_backup "/etc/systemd/system/mastodon-streaming.service" "systemd_streaming.service" ynh_backup "/etc/systemd/system/mastodon-streaming.service" "systemd_streaming.service"
debian_version=$(lsb_release -c -s) if [ "$(lsb_release --codename --short)" == "jessie" ]; then
if [[ $debian_version = jessie ]]; then
ynh_backup "/etc/apt/sources.list.d/backports.list" "apt_backports.list" ynh_backup "/etc/apt/sources.list.d/backports.list" "apt_backports.list"
fi fi
ynh_backup "/etc/apt/sources.list.d/yarn.list" "apt_yarn.list" ynh_backup "/etc/apt/sources.list.d/yarn.list" "apt_yarn.list"

View file

@ -64,8 +64,7 @@ sudo curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
sudo cp ../conf/yarn.list /etc/apt/sources.list.d/ sudo cp ../conf/yarn.list /etc/apt/sources.list.d/
# Install source.list debian jessie package backports # Install source.list debian jessie package backports
debian_version=$(lsb_release -c -s) if [ "$(lsb_release --codename --short)" == "jessie" ]; then
if [[ $debian_version = jessie ]]; then
sudo cp ../conf/backports.list /etc/apt/sources.list.d/ sudo cp ../conf/backports.list /etc/apt/sources.list.d/
ynh_package_update ynh_package_update
sudo apt-get -t jessie-backports -y install ffmpeg sudo apt-get -t jessie-backports -y install ffmpeg

View file

@ -90,8 +90,7 @@ sudo adduser $app --home /opt/$app --gecos "First Last,RoomNumber,WorkPhone,Home
sudo cp ./apt_yarn.list /etc/apt/sources.list.d/yarn.list sudo cp ./apt_yarn.list /etc/apt/sources.list.d/yarn.list
# Install source.list debian jessie package backports # Install source.list debian jessie package backports
debian_version=$(lsb_release -c -s) if [ "$(lsb_release --codename --short)" == "jessie" ]; then
if [[ $debian_version = jessie ]]; then
sudo cp ./apt_backports.list /etc/apt/sources.list.d/backports.list sudo cp ./apt_backports.list /etc/apt/sources.list.d/backports.list
ynh_package_update ynh_package_update
sudo apt-get -t jessie-backports -y install ffmpeg sudo apt-get -t jessie-backports -y install ffmpeg

View file

@ -83,7 +83,11 @@ sudo ln -s $final_path/.rbenv/versions/2.5.1/bin/ruby /usr/bin/ruby || true
sudo su - $app <<MCOMMANDS sudo su - $app <<MCOMMANDS
pushd ~/live pushd ~/live
$final_path/.rbenv/versions/2.5.1/bin/gem install bundler $final_path/.rbenv/versions/2.5.1/bin/gem install bundler
$final_path/.rbenv/versions/2.5.1/bin/bundle install --deployment --without development test if [ "$(lsb_release --codename --short)" == "jessie" ]; then
$final_path/.rbenv/versions/2.5.1/bin/bundle install --deployment --without development test
else
$final_path/.rbenv/versions/2.5.1/bin/bundle install --deployment --force --without development test
fi
MCOMMANDS MCOMMANDS
# Install package with yarn and restart postgresql # Install package with yarn and restart postgresql