1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/diaspora_ynh.git synced 2024-09-03 18:26:13 +02:00

fix final_path

This commit is contained in:
Salamandar 2024-02-29 14:44:27 +01:00
parent 0371e9f449
commit 7bf4eeed28
3 changed files with 9 additions and 9 deletions

View file

@ -9,7 +9,7 @@ WorkingDirectory=__INSTALL_DIR__/live
Environment="__LD_PRELOAD__" Environment="__LD_PRELOAD__"
Environment="RAILS_ENV=production" Environment="RAILS_ENV=production"
Environment="__YNH_RUBY_LOAD_PATH__" Environment="__YNH_RUBY_LOAD_PATH__"
ExecStart=__FINAL_PATH__/live/bin/bundle exec sidekiq ExecStart=__INSTALL_DIR__/live/bin/bundle exec sidekiq
Restart=always Restart=always
# Sandboxing options to harden security # Sandboxing options to harden security

View file

@ -10,7 +10,7 @@ Environment="__LD_PRELOAD__"
Environment="RAILS_ENV=production" Environment="RAILS_ENV=production"
Environment="__YNH_RUBY_LOAD_PATH__" Environment="__YNH_RUBY_LOAD_PATH__"
PIDFile=/run/__APP__/diaspora.pid PIDFile=/run/__APP__/diaspora.pid
ExecStart=__FINAL_PATH__/live/bin/bundle exec unicorn -c config/unicorn.rb -E production ExecStart=__INSTALL_DIR__/live/bin/bundle exec unicorn -c config/unicorn.rb -E production
ExecReload=/bin/kill -USR2 $MAINPID ExecReload=/bin/kill -USR2 $MAINPID
Restart=always Restart=always

View file

@ -36,7 +36,7 @@ build_pkg_dependencies="$build_pkg_dependencies $build_ruby_dependencies"
# However, $PATH is duplicated into $ruby_path to outlast any manipulation of $PATH # However, $PATH is duplicated into $ruby_path to outlast any manipulation of $PATH
# You can use the variable `$ynh_ruby_load_path` to quickly load your Ruby version # You can use the variable `$ynh_ruby_load_path` to quickly load your Ruby version
# in $PATH for an usage into a separate script. # in $PATH for an usage into a separate script.
# Exemple: $ynh_ruby_load_path $final_path/script_that_use_gem.sh` # Exemple: $ynh_ruby_load_path $install_dir/script_that_use_gem.sh`
# #
# #
# Finally, to start a Ruby service with the correct version, 2 solutions # Finally, to start a Ruby service with the correct version, 2 solutions
@ -81,7 +81,7 @@ ynh_use_ruby () {
ynh_ruby_load_path="PATH=$PATH" ynh_ruby_load_path="PATH=$PATH"
# Sets the local application-specific Ruby version # Sets the local application-specific Ruby version
pushd $final_path pushd $install_dir
$rbenv_install_dir/bin/rbenv local $ruby_version $rbenv_install_dir/bin/rbenv local $ruby_version
popd popd
} }