mirror of https://github.com/tteck/Proxmox.git
Mafl Dashboard change pnpm to yarn
This commit is contained in:
parent
359110601f
commit
7d755c9ae8
|
@ -33,7 +33,8 @@ msg_ok "Set up Node.js Repository"
|
||||||
msg_info "Installing Node.js"
|
msg_info "Installing Node.js"
|
||||||
$STD apt-get update
|
$STD apt-get update
|
||||||
$STD apt-get install -y nodejs
|
$STD apt-get install -y nodejs
|
||||||
$STD npm install -g pnpm
|
$STD npm install -g npm@latest
|
||||||
|
$STD npm install -g yarn
|
||||||
msg_ok "Installed Node.js"
|
msg_ok "Installed Node.js"
|
||||||
|
|
||||||
RELEASE=$(curl -s https://api.github.com/repos/hywax/mafl/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
RELEASE=$(curl -s https://api.github.com/repos/hywax/mafl/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
||||||
|
@ -45,8 +46,8 @@ touch /opt/mafl/data/config.yml
|
||||||
mv mafl-${RELEASE}/* /opt/mafl
|
mv mafl-${RELEASE}/* /opt/mafl
|
||||||
rm -rf mafl-${RELEASE}
|
rm -rf mafl-${RELEASE}
|
||||||
cd /opt/mafl
|
cd /opt/mafl
|
||||||
$STD pnpm install
|
$STD yarn install
|
||||||
$STD pnpm build
|
$STD yarn build
|
||||||
msg_ok "Installed Mafl v${RELEASE}"
|
msg_ok "Installed Mafl v${RELEASE}"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
|
@ -61,7 +62,7 @@ Restart=always
|
||||||
RestartSec=1
|
RestartSec=1
|
||||||
User=root
|
User=root
|
||||||
WorkingDirectory=/opt/mafl/
|
WorkingDirectory=/opt/mafl/
|
||||||
ExecStart=pnpm preview
|
ExecStart=yarn preview
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target" >$service_path
|
WantedBy=multi-user.target" >$service_path
|
||||||
$STD systemctl enable --now malf
|
$STD systemctl enable --now malf
|
||||||
|
|
Loading…
Reference in New Issue