mirror of
https://github.com/YunoHost-Apps/mastodon_ynh.git
synced 2024-09-03 19:46:02 +02:00
[enh] add install rben on restore
This commit is contained in:
parent
f87651dc4d
commit
ec04eac028
1 changed files with 9 additions and 0 deletions
|
@ -117,6 +117,15 @@ sudo su -c "psql" postgres <<< \
|
||||||
sudo su -c "psql" postgres <<< \
|
sudo su -c "psql" postgres <<< \
|
||||||
"update pg_database set datistemplate='true' where datname='template1';"
|
"update pg_database set datistemplate='true' where datname='template1';"
|
||||||
|
|
||||||
|
# Install rbenv
|
||||||
|
sudo su - $app <<COMMANDS
|
||||||
|
pushd ~/.rbenv
|
||||||
|
src/configure && make -C src
|
||||||
|
echo 'export PATH="/opt/mastodon/.rbenv/bin:/opt/mastodon/live/bin:$PATH"' >> ~/.profile
|
||||||
|
echo 'export PATH="/opt/mastodon/.rbenv/bin:/opt/mastodon/live/bin:$PATH"' >> ~/.bashrc
|
||||||
|
echo 'eval "\$(rbenv init -)"' >> ~/.profile
|
||||||
|
COMMANDS
|
||||||
|
|
||||||
# Create user for db postgresql
|
# Create user for db postgresql
|
||||||
ynh_psql_create_db_without_password "$app"
|
ynh_psql_create_db_without_password "$app"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue