mirror of
https://github.com/YunoHost-Apps/mastodon_ynh.git
synced 2024-09-03 19:46:02 +02:00
Fix migrated stretch (#23)
* Force bundle re-install * Add check debian on upgrade and clean check
This commit is contained in:
parent
301df81c1e
commit
c38df0dc27
4 changed files with 8 additions and 7 deletions
|
@ -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-sidekiq.service" "systemd_sidekiq.service"
|
||||
ynh_backup "/etc/systemd/system/mastodon-streaming.service" "systemd_streaming.service"
|
||||
debian_version=$(lsb_release -c -s)
|
||||
if [[ $debian_version = jessie ]]; then
|
||||
if [ "$(lsb_release --codename --short)" == "jessie" ]; then
|
||||
ynh_backup "/etc/apt/sources.list.d/backports.list" "apt_backports.list"
|
||||
fi
|
||||
ynh_backup "/etc/apt/sources.list.d/yarn.list" "apt_yarn.list"
|
||||
|
|
|
@ -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/
|
||||
|
||||
# Install source.list debian jessie package backports
|
||||
debian_version=$(lsb_release -c -s)
|
||||
if [[ $debian_version = jessie ]]; then
|
||||
if [ "$(lsb_release --codename --short)" == "jessie" ]; then
|
||||
sudo cp ../conf/backports.list /etc/apt/sources.list.d/
|
||||
ynh_package_update
|
||||
sudo apt-get -t jessie-backports -y install ffmpeg
|
||||
|
|
|
@ -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
|
||||
|
||||
# Install source.list debian jessie package backports
|
||||
debian_version=$(lsb_release -c -s)
|
||||
if [[ $debian_version = jessie ]]; then
|
||||
if [ "$(lsb_release --codename --short)" == "jessie" ]; then
|
||||
sudo cp ./apt_backports.list /etc/apt/sources.list.d/backports.list
|
||||
ynh_package_update
|
||||
sudo apt-get -t jessie-backports -y install ffmpeg
|
||||
|
|
|
@ -83,7 +83,11 @@ sudo ln -s $final_path/.rbenv/versions/2.5.1/bin/ruby /usr/bin/ruby || true
|
|||
sudo su - $app <<MCOMMANDS
|
||||
pushd ~/live
|
||||
$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
|
||||
|
||||
pushd $final_path/live
|
||||
|
|
Loading…
Reference in a new issue