diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/install | 5 | ||||
| -rw-r--r-- | scripts/upgrade | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/scripts/install b/scripts/install index 3d4d458..5d5bf1e 100644 --- a/scripts/install +++ b/scripts/install @@ -183,6 +183,11 @@ eval \"\$(rbenv init -)\"" > $final_path/.profile rm /usr/bin/ruby || true ln -s $final_path/.rbenv/versions/2.5.1/bin/ruby /usr/bin/ruby || true +# Yarn install on root +pushd $final_path/live +yarn install --pure-lockfile +popd + # Adjust Mastodon config # TODO: use official helper ynh_replace_string # TODO: save the config file in conf folder, to make replacement easier to read diff --git a/scripts/upgrade b/scripts/upgrade index 5585e03..8551421 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -155,6 +155,12 @@ yarn install --pure-lockfile MCOMMANDS ) +# Install package with yarn and restart postgresql +pushd $final_path/live +yarn install --pure-lockfile +systemctl restart postgresql +popd + # Apply Mastodon upgrade ( pushd $final_path/live |
