aboutsummaryrefslogtreecommitdiff
path: root/scripts/restore
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2019-03-22 23:59:16 +0100
committeryalh76 <yalh@yahoo.com>2019-03-22 23:59:16 +0100
commitdddaefcd63215f3416e387dcc2cf94b89c73d682 (patch)
treef24af8095b598b50d66dea93d9617fc5348f1d5a /scripts/restore
parent5cd0ad6b49991cf45a74b4a6c9db3e3bb5e4ebb4 (diff)
downloadmastodon_ynh-dddaefcd63215f3416e387dcc2cf94b89c73d682.tar.gz
mastodon_ynh-dddaefcd63215f3416e387dcc2cf94b89c73d682.tar.bz2
mastodon_ynh-dddaefcd63215f3416e387dcc2cf94b89c73d682.zip
adding ynh_add_secure_repos__2
Diffstat (limited to 'scripts/restore')
-rw-r--r--scripts/restore8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/restore b/scripts/restore
index 39de26e..c74eadc 100644
--- a/scripts/restore
+++ b/scripts/restore
@@ -10,6 +10,7 @@
source ../settings/scripts/_common.sh
source /usr/share/yunohost/helpers
source ../settings/scripts/ynh_install_ruby
+source ../settings/scripts/ynh_add_secure_repos__2
#=================================================
# MANAGE SCRIPT FAILURE
@@ -86,12 +87,11 @@ if [[ "$arch" = arm* ]]; then
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7638D0442B90D010
fi
-# Install source.list debian package backports & yarn
+# Install extra_repo debian package backports & yarn
if [ "$(lsb_release --codename --short)" == "jessie" ]; then
- echo "deb http://httpredir.debian.org/debian jessie-backports main" | tee /etc/apt/sources.list.d/jessie-backports.list
+ ynh_install_extra_repo --repo="deb http://httpredir.debian.org/debian jessie-backports main"
fi
-curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
-echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
+ynh_install_extra_repo --repo="deb https://dl.yarnpkg.com/debian/ stable main" --key="https://dl.yarnpkg.com/debian/pubkey.gpg"
ynh_package_update
# install nodejs