aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2019-03-19 23:11:01 +0100
committeryalh76 <yalh@yahoo.com>2019-03-19 23:11:01 +0100
commit2f3a368e811d520f64f02bdd33bc05bc5642012f (patch)
treee102fd1f4dd99d8bdc30704513144758b511ad3a
parent149191b44940c2807eefdd5c7af4df2bf0f8884c (diff)
downloadmastodon_ynh-2f3a368e811d520f64f02bdd33bc05bc5642012f.tar.gz
mastodon_ynh-2f3a368e811d520f64f02bdd33bc05bc5642012f.tar.bz2
mastodon_ynh-2f3a368e811d520f64f02bdd33bc05bc5642012f.zip
move dependencies to _common.sh
-rw-r--r--scripts/_common.sh2
-rw-r--r--scripts/install15
-rw-r--r--scripts/restore14
-rw-r--r--scripts/upgrade14
4 files changed, 4 insertions, 41 deletions
diff --git a/scripts/_common.sh b/scripts/_common.sh
index 8077956..7d1665e 100644
--- a/scripts/_common.sh
+++ b/scripts/_common.sh
@@ -5,7 +5,7 @@
#=================================================
# dependencies used by the app
-pkg_dependencies="deb1 deb2"
+pkg_dependencies="imagemagick ffmpeg libpq-dev libxml2-dev libxslt1-dev file git-core g++ libprotobuf-dev protobuf-compiler pkg-config nodejs gcc autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm5 libgdbm-dev nginx redis-server redis-tools postgresql postgresql-contrib certbot yarn libidn11-dev libicu-dev libjemalloc-dev"
#=================================================
# PERSONAL HELPERS
diff --git a/scripts/install b/scripts/install
index 5a9aece..1df70e6 100644
--- a/scripts/install
+++ b/scripts/install
@@ -97,20 +97,7 @@ ynh_package_update
ynh_install_nodejs 8
# TODO: use the same mecanism with other files
-ynh_install_app_dependencies \
- `# debian packages ` \
- imagemagick libpq-dev libxml2-dev libxslt1-dev file curl apt-transport-https pkg-config libprotobuf-dev protobuf-compiler libicu-dev libidn11-dev \
- `# redis ` \
- redis-server redis-tools \
- `# postgresql ` \
- postgresql postgresql-contrib \
- `# Ruby ` \
- autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev \
- `# ffmpeg from backports ` \
- ffmpeg \
- `# Yarn ` \
- yarn
-
+ynh_install_app_dependencies $pkg_dependencies
#=================================================
# CREATE A POSTGRESQL DATABASE
diff --git a/scripts/restore b/scripts/restore
index 1b9537c..7e68436 100644
--- a/scripts/restore
+++ b/scripts/restore
@@ -102,19 +102,7 @@ ynh_package_update
ynh_install_nodejs 8
# TODO: use the same mecanism with other files
-ynh_install_app_dependencies \
- `# debian packages ` \
- imagemagick libpq-dev libxml2-dev libxslt1-dev file curl apt-transport-https pkg-config libprotobuf-dev protobuf-compiler libicu-dev libidn11-dev \
- `# redis ` \
- redis-server redis-tools \
- `# postgresql ` \
- postgresql \
- `# Ruby ` \
- autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev \
- `# ffmpeg from backports ` \
- ffmpeg \
- `# Yarn ` \
- yarn
+ynh_install_app_dependencies $pkg_dependencies
#=================================================
# RESTORE THE POSTGRESQL DATABASE
diff --git a/scripts/upgrade b/scripts/upgrade
index d9e4cac..d71c7f1 100644
--- a/scripts/upgrade
+++ b/scripts/upgrade
@@ -139,19 +139,7 @@ ynh_print_info "Upgrading dependencies..."
ynh_install_nodejs 8
# TODO: use the same mecanism with other files
-ynh_install_app_dependencies \
- `# debian packages ` \
- imagemagick libpq-dev libxml2-dev libxslt1-dev file curl apt-transport-https pkg-config libprotobuf-dev protobuf-compiler libicu-dev libidn11-dev \
- `# redis ` \
- redis-server redis-tools \
- `# postgresql ` \
- postgresql postgresql-contrib \
- `# Ruby ` \
- autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev \
- `# ffmpeg from backports ` \
- ffmpeg \
- `# Yarn ` \
- yarn
+ynh_install_app_dependencies $pkg_dependencies
#=================================================
# CREATE DEDICATED USER