mirror of https://github.com/tteck/Proxmox.git
Compare commits
No commits in common. "6037d381ef3f061357b6d689f5fa89df26310c59" and "58b75e0dd8096ea4225e1c1ba8de2bd32a7d86f6" have entirely different histories.
6037d381ef
...
58b75e0dd8
14
ct/mafl.sh
14
ct/mafl.sh
|
@ -55,19 +55,7 @@ function default_settings() {
|
|||
function update_script() {
|
||||
header_info
|
||||
if [[ ! -d /opt/mafl ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
||||
|
||||
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}"
|
||||
msg_error "There is currently no update path available."
|
||||
exit
|
||||
}
|
||||
|
||||
|
|
|
@ -59,11 +59,6 @@ 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) }')
|
||||
|
@ -135,6 +130,12 @@ 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
|
||||
|
|
|
@ -29,9 +29,6 @@ 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"
|
||||
|
|
Loading…
Reference in New Issue