mirror of
https://github.com/YunoHost-Apps/mastodon_ynh.git
synced 2024-09-03 19:46:02 +02:00
Fix:version rbenv
This commit is contained in:
parent
5a4c797f6b
commit
26787f12cd
2 changed files with 4 additions and 13 deletions
|
@ -96,7 +96,7 @@ ynh_install_app_dependencies \
|
||||||
`# redis ` \
|
`# redis ` \
|
||||||
redis-server redis-tools \
|
redis-server redis-tools \
|
||||||
`# postgresql ` \
|
`# postgresql ` \
|
||||||
postgresql \
|
postgresql postgresql-contrib \
|
||||||
`# Ruby ` \
|
`# Ruby ` \
|
||||||
autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev \
|
autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev \
|
||||||
`# ffmpeg from backports ` \
|
`# ffmpeg from backports ` \
|
||||||
|
@ -146,7 +146,7 @@ ynh_add_nginx_config
|
||||||
# Create a system user
|
# Create a system user
|
||||||
adduser $app --home $final_path --gecos "First Last,RoomNumber,WorkPhone,HomePhone" --disabled-password
|
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
|
# TODO: try to use ynh_install_ruby from https://github.com/YunoHost-Apps/Experimental_helpers
|
||||||
# Install de rbenv
|
# Install de rbenv
|
||||||
|
@ -208,7 +208,7 @@ ynh_replace_string "#SMTP_OPENSSL_VERIFY_MODE=peer" "SMTP_OPENSSL_V
|
||||||
(
|
(
|
||||||
cd "$final_path/live"
|
cd "$final_path/live"
|
||||||
su mastodon <<INSTALL
|
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
|
$final_path/live/bin/bundle install -j$(getconf _NPROCESSORS_ONLN) --deployment --without development test --quiet
|
||||||
yarn install --production --no-progress --non-interactive --silent
|
yarn install --production --no-progress --non-interactive --silent
|
||||||
echo "SAFETY_ASSURED=1">> .env.production
|
echo "SAFETY_ASSURED=1">> .env.production
|
||||||
|
@ -249,7 +249,7 @@ SETADMIN
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# TODO:Set permissions to app files
|
# TODO:Set permissions to app files
|
||||||
chown -R "$app" "$final_path"
|
chown -R "$app": "$final_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# ADVERTISE SERVICE IN ADMIN PANEL
|
# ADVERTISE SERVICE IN ADMIN PANEL
|
||||||
|
|
|
@ -88,15 +88,6 @@ ynh_remove_nginx_config
|
||||||
# Remove a cron file
|
# Remove a cron file
|
||||||
ynh_secure_remove "/etc/cron.d/$app"
|
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
|
# Delete ruby exec
|
||||||
#ynh_secure_remove /usr/bin/ruby
|
#ynh_secure_remove /usr/bin/ruby
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue