aboutsummaryrefslogtreecommitdiff
path: root/scripts/restore
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2019-05-14 21:04:05 +0200
committeryalh76 <yalh@yahoo.com>2019-05-14 21:04:05 +0200
commit7dc905542a19caab58eb5769165d7b1426492f8c (patch)
tree6a51a0b807ec5fe53565bf8f365c01f986f7a34c /scripts/restore
parentf6bf3f01c9bbe6862cb8360e05245672e33963e5 (diff)
downloadmastodon_ynh-7dc905542a19caab58eb5769165d7b1426492f8c.tar.gz
mastodon_ynh-7dc905542a19caab58eb5769165d7b1426492f8c.tar.bz2
mastodon_ynh-7dc905542a19caab58eb5769165d7b1426492f8c.zip
Cleanup dependencies
Diffstat (limited to 'scripts/restore')
-rw-r--r--scripts/restore18
1 files changed, 2 insertions, 16 deletions
diff --git a/scripts/restore b/scripts/restore
index e85815c..b26661f 100644
--- a/scripts/restore
+++ b/scripts/restore
@@ -85,23 +85,9 @@ chown -R $app: $final_path
#=================================================
ynh_script_progression --message="Reinstalling dependencies..." --weight=63
-# Import debian archive pubkey, need on ARM arch
-arch=$(uname -m)
-if [[ "$arch" = arm* ]]; then
- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8B48AD6246925553
- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7638D0442B90D010
-fi
-
-# Install extra_repo debian package backports & yarn
-if [ "$(lsb_release --codename --short)" == "jessie" ]; then
- ynh_install_extra_repo --repo="deb http://httpredir.debian.org/debian jessie-backports main" --append
-fi
-ynh_install_extra_repo --repo="deb https://dl.yarnpkg.com/debian/ stable main" --key="https://dl.yarnpkg.com/debian/pubkey.gpg" --append
-
-# install nodejs
ynh_install_nodejs --nodejs_version="8"
-
-ynh_install_app_dependencies $pkg_dependencies
+ynh_install_app_dependencies $pkg_dependencies
+ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" --package="yarn" --key="https://dl.yarnpkg.com/debian/pubkey.gpg"
#=================================================
# INSTALLING RUBY AND BUNDLER