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

Fix restore and upgrade

removing (cd tio make ynh_gem available
This commit is contained in:
yalh76 2021-03-10 19:49:23 +01:00
parent b576c4c0bd
commit 60aabdcaaf
2 changed files with 7 additions and 6 deletions

View file

@ -95,9 +95,10 @@ ynh_install_ruby --ruby_version=$RUBY_VERSION
#================================================= #=================================================
ynh_script_progression --message="Reinstall Bundle Gem..." ynh_script_progression --message="Reinstall Bundle Gem..."
(cd "$final_path" pushd "$final_path"
ynh_use_ruby ynh_use_ruby
ynh_gem install bundler) ynh_gem install bundler
popd
#================================================= #=================================================
# RESTORE THE POSTGRESQL DATABASE # RESTORE THE POSTGRESQL DATABASE

View file

@ -263,14 +263,14 @@ then
# Set permissions to app files # Set permissions to app files
chown -R $app: $final_path chown -R $app: $final_path
( pushd "$final_path"
cd "$final_path"
ynh_use_ruby ynh_use_ruby
# Install bundler, a gems installer # Install bundler, a gems installer
ynh_gem install bundler ynh_gem install bundler
# Install without documentation # Install without documentation
exec_as $app echo "gem: --no-ri --no-rdoc" >> "$final_path/.gemrc" exec_as $app echo "gem: --no-ri --no-rdoc" >> "$final_path/.gemrc"
) popd
# Specific actions on ARM architecture # Specific actions on ARM architecture
if [ -n "$(uname -m | grep arm)" ] ; then if [ -n "$(uname -m | grep arm)" ] ; then
# Define the platform specifically to retrieve binaries # Define the platform specifically to retrieve binaries