mmdl: fix app name

This commit is contained in:
vhsdream 2025-06-02 16:20:05 -04:00
parent 1d33e3c1cd
commit be2018471d
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ function update_script() {
curl -fsSLO "https://github.com/intri-in/manage-my-damn-life-nextjs/archive/refs/tags/${RELEASE}.zip" curl -fsSLO "https://github.com/intri-in/manage-my-damn-life-nextjs/archive/refs/tags/${RELEASE}.zip"
rm -r /opt/mmdl rm -r /opt/mmdl
unzip -q "$RELEASE".zip unzip -q "$RELEASE".zip
mv "$APPLICATION"-nodejs-"$RELEASE"/ /opt/mmdl mv manage-my-damn-life-nextjs-"$RELEASE"/ /opt/mmdl
mv /opt/mmdl.env /opt/mmdl/.env mv /opt/mmdl.env /opt/mmdl/.env
cd /opt/mmdl cd /opt/mmdl
$STD npm install $STD npm install

View File

@ -38,7 +38,7 @@ msg_info "Setup ${APPLICATION}"
RELEASE=$(curl -s https://api.github.com/repos/intri-in/manage-my-damn-life-nextjs/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') RELEASE=$(curl -s https://api.github.com/repos/intri-in/manage-my-damn-life-nextjs/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
curl -fsSLO "https://github.com/intri-in/manage-my-damn-life-nextjs/archive/refs/tags/v${RELEASE}.zip" curl -fsSLO "https://github.com/intri-in/manage-my-damn-life-nextjs/archive/refs/tags/v${RELEASE}.zip"
unzip -q v"$RELEASE".zip unzip -q v"$RELEASE".zip
mv "$APPLICATION"-nextjs-"$RELEASE"/ /opt/mmdl mv manage-my-damn-life-nextjs-"$RELEASE"/ /opt/mmdl
cp /opt/mmdl/sample.env.local /opt/mmdl/.env cp /opt/mmdl/sample.env.local /opt/mmdl/.env
sed -i -e 's|db|localhost|' \ sed -i -e 's|db|localhost|' \