aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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