Skip to content

Commit

Permalink
More update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
MStolen committed Jan 17, 2024
1 parent 0a13d9b commit d3525c0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/update.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
cd /home/user/project/location
git pull
pnpm i
pnpm build
systemd stop toolcrib
systemd start toolcrib
systemctl stop toolcrib
systemctl start toolcrib
19 changes: 19 additions & 0 deletions scripts/update_node.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash
# Check for node version manager
if ! command -v nvm &> /dev/null
then
echo "nvm not found"
echo "Install node version manager from https://github.com/nvm-sh/nvm"
exit 1
fi
nvm install --lts=iron # Install LTS version 20.x.x of node
nvm alias default lts/iron # set default to be LTS version
nvm install-latest-npm # Update npm
if ! command -v pnpm &> /dev/null # check if pnpm is installed
then
# install pnpm
npm install -g pnpm
else
# update pnpm
pnpm add -g pnpm
fi

0 comments on commit d3525c0

Please sign in to comment.