mirror of https://github.com/tteck/Proxmox.git
Compare commits
4 Commits
58b75e0dd8
...
6037d381ef
Author | SHA1 | Date |
---|---|---|
|
6037d381ef | |
|
8d87cc6aaa | |
|
2dffbc92c8 | |
|
019a80d7a1 |
14
ct/mafl.sh
14
ct/mafl.sh
|
@ -55,7 +55,19 @@ function default_settings() {
|
||||||
function update_script() {
|
function update_script() {
|
||||||
header_info
|
header_info
|
||||||
if [[ ! -d /opt/mafl ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
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
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -59,6 +59,11 @@ function update_script() {
|
||||||
msg_error "No ${APP} Installation Found!"
|
msg_error "No ${APP} Installation Found!"
|
||||||
exit
|
exit
|
||||||
fi
|
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 |
|
RELEASE=$(curl -s https://api.github.com/repos/NginxProxyManager/nginx-proxy-manager/releases/latest |
|
||||||
grep "tag_name" |
|
grep "tag_name" |
|
||||||
awk '{print substr($2, 3, length($2)-4) }')
|
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
|
python3 -m pip install --no-cache-dir certbot-dns-cloudflare &>/dev/null
|
||||||
msg_ok "Setup Enviroment"
|
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"
|
msg_info "Building Frontend"
|
||||||
cd ./frontend
|
cd ./frontend
|
||||||
pnpm install &>/dev/null
|
pnpm install &>/dev/null
|
||||||
|
|
|
@ -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) }')
|
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
|
rm -rf ${RELEASE}.tar.gz
|
||||||
mv Heimdall-${VER} /opt/Heimdall
|
mv Heimdall-${VER} /opt/Heimdall
|
||||||
|
cd /opt/Heimdall
|
||||||
|
cp .env.example .env
|
||||||
|
$STD php artisan key:generate
|
||||||
msg_ok "Installed Heimdall Dashboard ${RELEASE}"
|
msg_ok "Installed Heimdall Dashboard ${RELEASE}"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
|
|
Loading…
Reference in New Issue