From 26787f12cddb73da7f68f39e6e98f818b2cdfef6 Mon Sep 17 00:00:00 2001 From: anmol26s Date: Wed, 26 Dec 2018 04:42:07 +0530 Subject: [PATCH] Fix:version rbenv --- scripts/install | 8 ++++---- scripts/remove | 9 --------- 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 <> .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