From bdf9737fc1abb3f36370d000f3550b80ae889b7c Mon Sep 17 00:00:00 2001 From: hoangvv Date: Sat, 2 Nov 2024 12:28:05 +0700 Subject: [PATCH] update script --- dev/exec.sh | 19 ++++++++++++------- logo.txt | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 7 deletions(-) create mode 100644 logo.txt diff --git a/dev/exec.sh b/dev/exec.sh index 6369f94..0eb27f1 100755 --- a/dev/exec.sh +++ b/dev/exec.sh @@ -1,5 +1,5 @@ #!/bin/bash -set -x + # Create a temporary file to store the URLs temp_file=$(mktemp) @@ -7,9 +7,8 @@ temp_file=$(mktemp) grep -o 'https://apps-assets.fit2cloud.com/dev/1panel/.*' link.txt > "$temp_file" # Create a directory to store the downloaded files -if [ ! -d "$(dirname "$nextweb")" ]; then - mkdir -p nextweb -fi +mkdir -p nextweb + # Change to the downloads directory cd nextweb @@ -18,11 +17,17 @@ while IFS= read -r url; do # Extract the path after the base URL path=$(echo "$url" | sed 's|https://apps-assets.fit2cloud.com/dev/1panel/||') - # Create the directory structure - mkdir -p "$(dirname "$path")" + # Create the directory structure if it doesn't exist + if [ ! -d "$(dirname "$path")" ]; then + mkdir -p "$(dirname "$path")" + fi # Download the file - wget -q "$url" -P "$(dirname "$path")" + filename=$(basename "$url") + wget -q "$url" -O "$filename" + + # Move the file to the appropriate directory + mv "$filename" "$(dirname "$path")" done < "$temp_file" # Remove the temporary file diff --git a/logo.txt b/logo.txt new file mode 100644 index 0000000..1f4a0a7 --- /dev/null +++ b/logo.txt @@ -0,0 +1,41 @@ +https://cdn.nextzenos.com/CDN/NextWeb/raw/branch/main/dev/nextweb/logo.png +https://cdn.nextzenos.com/CDN/NextWeb/raw/branch/main/dev/nextweb/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/phpmyadmin/logo.png +https://cdn.nextzenos.com/CDN/NextWeb/raw/branch/main/dev/nextweb/mariadb/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/portainer-ce/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/redis-commander/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/grafana/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/adminer/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/ddns-go/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/wordpress/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/rabbitmq/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/postgresql/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/web-check/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/openlitespeed/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/openresty/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/mongodb/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/php8/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/php7/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/php5/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/mssql/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/pgadmin4/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/it-tools/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/python/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/openldap/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/typecho/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/php/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/elasticsearch/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/changedetectionio/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/nginx-proxy-manager/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/zerotier-one/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/mysql/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/java/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/cloudbeaver/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/node/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/zerotier-moon/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/kodbox/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/neo4j/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/go/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/redis/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/sftpgo/logo.png +https://apps-assets.fit2cloud.com/dev/1panel/mongo-express/logo.png \ No newline at end of file