mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-09-12 18:29:45 +00:00
Feature: Use Verbose Mode for all Scripts (removed &>/dev/null) (#2596)
* Feature: Use Verbose Mode for all Scripts (removed &>/dev/null) * Update crafty-controller.sh
This commit is contained in:
parent
20cc7572a5
commit
ece3ad2b13
165 changed files with 475 additions and 475 deletions
|
@ -30,8 +30,8 @@ function update_script() {
|
|||
if [[ "$(node -v | cut -d 'v' -f 2)" == "18."* ]]; then
|
||||
if ! command -v npm >/dev/null 2>&1; then
|
||||
echo "Installing NPM..."
|
||||
apt-get install -y npm >/dev/null 2>&1
|
||||
npm install -g pnpm >/dev/null 2>&1
|
||||
$STD apt-get install -y npm
|
||||
$STD npm install -g pnpm
|
||||
echo "Installed NPM..."
|
||||
fi
|
||||
fi
|
||||
|
@ -45,11 +45,11 @@ function update_script() {
|
|||
cp -r homepage-${RELEASE}/* /opt/homepage/
|
||||
rm -rf homepage-${RELEASE}
|
||||
cd /opt/homepage
|
||||
npx --yes update-browserslist-db@latest >/dev/null 2>&1
|
||||
pnpm install >/dev/null 2>&1
|
||||
$STD npx --yes update-browserslist-db@latest
|
||||
$STD pnpm install
|
||||
export NEXT_PUBLIC_VERSION="v$RELEASE"
|
||||
export NEXT_PUBLIC_REVISION="source"
|
||||
pnpm build >/dev/null 2>&1
|
||||
$STD pnpm build
|
||||
systemctl start homepage
|
||||
echo "${RELEASE}" >/opt/${APP}_version.txt
|
||||
msg_ok "Updated Homepage to v${RELEASE}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue