refactor(cyberchef): use -fsSL, update log messages and remove whitespace
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
|
||||||
# Copyright (c) 2021-2026 community-scripts ORG
|
# Copyright (c) 2021-2026 community-scripts ORG
|
||||||
# Author: ethan-hgwr
|
# Author: ethan-hgwr
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE
|
# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE
|
||||||
@@ -30,24 +30,23 @@ function update_script() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if check_for_gh_release "cyberchef" "gchq/CyberChef"; then
|
if check_for_gh_release "cyberchef" "gchq/CyberChef"; then
|
||||||
msg_info "Stopping $APP"
|
msg_info "Stopping Service"
|
||||||
systemctl stop caddy
|
systemctl stop caddy
|
||||||
msg_ok "Stopped $APP"
|
msg_ok "Stopped Service"
|
||||||
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "cyberchef" "gchq/CyberChef" "tarball"
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "cyberchef" "gchq/CyberChef" "tarball"
|
||||||
|
|
||||||
msg_info "Building $APP (Patience)"
|
msg_info "Building CyberChef"
|
||||||
cd /opt/cyberchef
|
cd /opt/cyberchef
|
||||||
$STD npm ci --ignore-scripts
|
$STD npm ci --ignore-scripts
|
||||||
$STD npm run postinstall
|
$STD npm run postinstall
|
||||||
$STD npm run build
|
$STD npm run build
|
||||||
msg_ok "Built $APP"
|
msg_ok "Built CyberChef"
|
||||||
|
|
||||||
msg_info "Starting $APP"
|
msg_info "Starting Service"
|
||||||
systemctl start caddy
|
systemctl start caddy
|
||||||
msg_ok "Started $APP"
|
msg_ok "Started Service"
|
||||||
|
msg_ok "Updated successfully!"
|
||||||
msg_ok "Updated $APP Successfully"
|
|
||||||
fi
|
fi
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user