fixes
This commit is contained in:
parent
0aa76a821d
commit
4268c05a9f
@ -65,7 +65,7 @@ if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then
|
||||
mv "$tmp_dir"/*/* /opt/meilisearch-ui/
|
||||
cd /opt/meilisearch-ui
|
||||
sed -i 's|const hash = execSync("git rev-parse HEAD").toString().trim();|const hash = "unknown";|' /opt/meilisearch-ui/vite.config.ts
|
||||
pnpm install
|
||||
$STD pnpm install
|
||||
cat <<EOF > /opt/meilisearch-ui/.env.local
|
||||
VITE_SINGLETON_MODE=true
|
||||
VITE_SINGLETON_HOST=http://${LOCAL_IP}:7700
|
||||
|
@ -21,7 +21,8 @@ post_to_api() {
|
||||
local pve_version="not found"
|
||||
pve_version=$(pveversion | awk -F'[/ ]' '{print $2}')
|
||||
|
||||
JSON_PAYLOAD=$(cat <<EOF
|
||||
JSON_PAYLOAD=$(
|
||||
cat <<EOF
|
||||
{
|
||||
"ct_type": $CT_TYPE,
|
||||
"type":"lxc",
|
||||
@ -44,7 +45,6 @@ EOF
|
||||
-d "$JSON_PAYLOAD") || true
|
||||
}
|
||||
|
||||
|
||||
get_error_description() {
|
||||
local exit_code="$1"
|
||||
case "$exit_code" in
|
||||
@ -96,7 +96,6 @@ get_error_description() {
|
||||
esac
|
||||
}
|
||||
|
||||
|
||||
post_to_api_vm() {
|
||||
|
||||
if [[ ! -f /usr/local/community-scripts/diagnostics ]]; then
|
||||
@ -121,7 +120,8 @@ post_to_api_vm() {
|
||||
|
||||
DISK_SIZE_API=${DISK_SIZE%G}
|
||||
|
||||
JSON_PAYLOAD=$(cat <<EOF
|
||||
JSON_PAYLOAD=$(
|
||||
cat <<EOF
|
||||
{
|
||||
"ct_type": 2,
|
||||
"type":"vm",
|
||||
@ -162,16 +162,15 @@ post_update_to_api() {
|
||||
local exit_code="${2:-0}"
|
||||
fi
|
||||
|
||||
|
||||
local API_URL="http://api.community-scripts.org/dev/upload/updatestatus"
|
||||
error=$(get_error_description "$exit_code")
|
||||
|
||||
|
||||
if [ -z "$error" ]; then
|
||||
error="Unknown error"
|
||||
fi
|
||||
|
||||
JSON_PAYLOAD=$(cat <<EOF
|
||||
JSON_PAYLOAD=$(
|
||||
cat <<EOF
|
||||
{
|
||||
"status": "$status",
|
||||
"error": "$error",
|
||||
|
Loading…
x
Reference in New Issue
Block a user