MaybeFinance: small move to before cd

This commit is contained in:
vhsdream
2025-06-10 13:08:36 -04:00
parent 9bb41e2b79
commit 59ec15e08d
2 changed files with 3 additions and 3 deletions

View File

@@ -54,9 +54,9 @@ RELEASE=$(curl -s https://api.github.com/repos/maybe-finance/maybe/releases/late
curl -fsSL "https://github.com/maybe-finance/maybe/archive/refs/tags/v${RELEASE}.zip" -o /tmp/v"$RELEASE".zip
unzip -q /tmp/v"$RELEASE".zip
mv maybe-"$RELEASE" /opt/maybe
cd /opt/maybe
RUBY_VERSION="$(cat /opt/maybe/.ruby-version)" RUBY_INSTALL_RAILS=false setup_rbenv_stack
cp ./.env.example ./.env
cd /opt/maybe
cp /.env.example ./.env
sed -i -e '/SELF_/a RAILS_ENV=production' \
-e "s/secret-value/\"$(openssl rand -hex 64)\"/" \
-e "/^SECRET_KEY/a RAILS_MASTER_KEY=\"$(openssl rand -hex 16)\"" \