aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authoranmol26s <github@datamol.org>2018-12-26 04:42:07 +0530
committeranmol26s <github@datamol.org>2018-12-26 04:42:07 +0530
commit26787f12cddb73da7f68f39e6e98f818b2cdfef6 (patch)
treeb8d2d6a9a0e46d1620e617208fe8d9628d2d44e0 /scripts
parent5a4c797f6b229309fa1e9831727b972b2dfe0f66 (diff)
downloadmastodon_ynh-26787f12cddb73da7f68f39e6e98f818b2cdfef6.tar.gz
mastodon_ynh-26787f12cddb73da7f68f39e6e98f818b2cdfef6.tar.bz2
mastodon_ynh-26787f12cddb73da7f68f39e6e98f818b2cdfef6.zip
Fix:version rbenv
Diffstat (limited to 'scripts')
-rw-r--r--scripts/install8
-rw-r--r--scripts/remove9
2 files changed, 4 insertions, 13 deletions
diff --git a/scripts/install b/scripts/install
index d457b8b..c21ecf2 100644
--- a/scripts/install
+++ b/scripts/install
@@ -96,7 +96,7 @@ ynh_install_app_dependencies \
`# redis ` \
redis-server redis-tools \
`# postgresql ` \
- 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 ` \
@@ -146,7 +146,7 @@ ynh_add_nginx_config
# Create a system user
adduser $app --home $final_path --gecos "First Last,RoomNumber,WorkPhone,HomePhone" --disabled-password
-chown -R "$app" "$final_path"
+chown -R "$app": "$final_path"
# TODO: try to use ynh_install_ruby from https://github.com/YunoHost-Apps/Experimental_helpers
# Install de rbenv
@@ -208,7 +208,7 @@ ynh_replace_string "#SMTP_OPENSSL_VERIFY_MODE=peer" "SMTP_OPENSSL_V
(
cd "$final_path/live"
su mastodon <<INSTALL
- $final_path/.rbenv/versions/2.5.1/bin/gem install bundler
+ $final_path/.rbenv/versions/2.5.3/bin/gem install bundler
$final_path/live/bin/bundle install -j$(getconf _NPROCESSORS_ONLN) --deployment --without development test --quiet
yarn install --production --no-progress --non-interactive --silent
echo "SAFETY_ASSURED=1">> .env.production
@@ -249,7 +249,7 @@ SETADMIN
#=================================================
# TODO:Set permissions to app files
-chown -R "$app" "$final_path"
+chown -R "$app": "$final_path"
#=================================================
# ADVERTISE SERVICE IN ADMIN PANEL
diff --git a/scripts/remove b/scripts/remove
index c6c6b05..6d6679b 100644
--- a/scripts/remove
+++ b/scripts/remove
@@ -88,15 +88,6 @@ ynh_remove_nginx_config
# Remove a cron file
ynh_secure_remove "/etc/cron.d/$app"
-#=================================================
-# REMOVE source.list
-#=================================================
-if [ "$(lsb_release --codename --short)" == "jessie" ]; then
- ynh_secure_remove /etc/apt/sources.list.d/backports.list
- ynh_secure_remove /etc/apt/sources.list.d/jessie-backports.list
-fi
-ynh_secure_remove /etc/apt/sources.list.d/yarn.list
-
# Delete ruby exec
#ynh_secure_remove /usr/bin/ruby