aboutsummaryrefslogtreecommitdiff
path: root/scripts/install
diff options
context:
space:
mode:
authoranmol <github@datamol.org>2018-11-07 09:42:21 +0530
committeranmol <github@datamol.org>2018-11-07 09:42:21 +0530
commit9d07d121ad516bf0d3db1c5eb700cb6575630802 (patch)
tree8ce15bdd606cbbacb538457f628b997af40d05c5 /scripts/install
parent7b33bf4f034e701262de23cb5193e3fdd184311f (diff)
downloadmastodon_ynh-9d07d121ad516bf0d3db1c5eb700cb6575630802.tar.gz
mastodon_ynh-9d07d121ad516bf0d3db1c5eb700cb6575630802.tar.bz2
mastodon_ynh-9d07d121ad516bf0d3db1c5eb700cb6575630802.zip
Upgrade error fix and cron job
Diffstat (limited to 'scripts/install')
-rw-r--r--scripts/install13
1 files changed, 9 insertions, 4 deletions
diff --git a/scripts/install b/scripts/install
index e82774b..d457b8b 100644
--- a/scripts/install
+++ b/scripts/install
@@ -161,14 +161,14 @@ eval \"\$(rbenv init -)\"" > $final_path/.profile
# Install ruby-build
(
- exec_as "$app" $final_path/.rbenv/bin/rbenv install 2.5.1
- exec_as "$app" $final_path/.rbenv/bin/rbenv global 2.5.1
- exec_as "$app" $final_path/.rbenv/versions/2.5.1/bin/ruby -v
+ exec_as "$app" $final_path/.rbenv/bin/rbenv install 2.5.3
+ exec_as "$app" $final_path/.rbenv/bin/rbenv global 2.5.3
+ exec_as "$app" $final_path/.rbenv/versions/2.5.3/bin/ruby -v
)
# Create symlink for ruby
rm /usr/bin/ruby || true
-ln -s $final_path/.rbenv/versions/2.5.1/bin/ruby /usr/bin/ruby || true
+ln -s $final_path/.rbenv/versions/2.5.3/bin/ruby /usr/bin/ruby || true
# Yarn install on root
pushd $final_path/live
@@ -260,6 +260,11 @@ yunohost service add "$app-web"
yunohost service add "$app-sidekiq"
yunohost service add "$app-streaming"
+# SETUP CRON JOB FOR REMOVING CACHE
+ynh_replace_string "__FINAL_PATH__" "$final_path" ../conf/cron
+ynh_replace_string "__USER__" "$app" ../conf/cron
+sudo cp -f ../conf/cron /etc/cron.d/$app
+
#=================================================
# SETUP SSOWAT
#=================================================