Compare commits

...

4 Commits

Author SHA1 Message Date
tteckster 6037d381ef
Update heimdalldashboard-install.sh
tweak install
2024-03-14 12:25:19 -04:00
tteckster 8d87cc6aaa
Update nginxproxymanager.sh
set pnpm version to 8.15
2024-03-14 09:37:32 -04:00
tteckster 2dffbc92c8
Update nginxproxymanager.sh
move "Installing pnpm" to the top of the script
2024-03-14 09:35:22 -04:00
Alexander 019a80d7a1
Mafl Dashboard update script (#2657) 2024-03-14 09:01:34 -04:00
3 changed files with 21 additions and 7 deletions

View File

@ -55,7 +55,19 @@ function default_settings() {
function update_script() {
header_info
if [[ ! -d /opt/mafl ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
msg_error "There is currently no update path available."
RELEASE=$(curl -s https://api.github.com/repos/hywax/mafl/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
msg_info "Updating Mafl to v${RELEASE} (Patience)"
systemctl stop mafl
wget -q https://github.com/hywax/mafl/archive/refs/tags/v${RELEASE}.tar.gz
tar -xzf v${RELEASE}.tar.gz
cp -r mafl-${RELEASE}/* /opt/mafl/
rm -rf mafl-${RELEASE}
cd /opt/mafl
yarn install
yarn build
systemctl start mafl
msg_ok "Updated Mafl to v${RELEASE}"
exit
}

View File

@ -59,6 +59,11 @@ function update_script() {
msg_error "No ${APP} Installation Found!"
exit
fi
if ! command -v pnpm &> /dev/null; then
msg_info "Installing pnpm"
npm install -g pnpm@8.15 &>/dev/null
msg_ok "Installed pnpm"
fi
RELEASE=$(curl -s https://api.github.com/repos/NginxProxyManager/nginx-proxy-manager/releases/latest |
grep "tag_name" |
awk '{print substr($2, 3, length($2)-4) }')
@ -130,12 +135,6 @@ function update_script() {
python3 -m pip install --no-cache-dir certbot-dns-cloudflare &>/dev/null
msg_ok "Setup Enviroment"
if ! command -v pnpm &> /dev/null; then
msg_info "Installing pnpm"
npm install -g pnpm &>/dev/null
msg_ok "Installed pnpm"
fi
msg_info "Building Frontend"
cd ./frontend
pnpm install &>/dev/null

View File

@ -29,6 +29,9 @@ tar xzf ${RELEASE}.tar.gz
VER=$(curl -s https://api.github.com/repos/linuxserver/Heimdall/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
rm -rf ${RELEASE}.tar.gz
mv Heimdall-${VER} /opt/Heimdall
cd /opt/Heimdall
cp .env.example .env
$STD php artisan key:generate
msg_ok "Installed Heimdall Dashboard ${RELEASE}"
msg_info "Creating Service"