update script

This commit is contained in:
hoangvv 2024-11-02 12:28:05 +07:00
parent 5868f608b0
commit bdf9737fc1
2 changed files with 53 additions and 7 deletions

View File

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
set -x
# Create a temporary file to store the URLs # Create a temporary file to store the URLs
temp_file=$(mktemp) temp_file=$(mktemp)
@ -7,9 +7,8 @@ temp_file=$(mktemp)
grep -o 'https://apps-assets.fit2cloud.com/dev/1panel/.*' link.txt > "$temp_file" grep -o 'https://apps-assets.fit2cloud.com/dev/1panel/.*' link.txt > "$temp_file"
# Create a directory to store the downloaded files # Create a directory to store the downloaded files
if [ ! -d "$(dirname "$nextweb")" ]; then mkdir -p nextweb
mkdir -p nextweb
fi
# Change to the downloads directory # Change to the downloads directory
cd nextweb cd nextweb
@ -18,11 +17,17 @@ while IFS= read -r url; do
# Extract the path after the base URL # Extract the path after the base URL
path=$(echo "$url" | sed 's|https://apps-assets.fit2cloud.com/dev/1panel/||') path=$(echo "$url" | sed 's|https://apps-assets.fit2cloud.com/dev/1panel/||')
# Create the directory structure # Create the directory structure if it doesn't exist
mkdir -p "$(dirname "$path")" if [ ! -d "$(dirname "$path")" ]; then
mkdir -p "$(dirname "$path")"
fi
# Download the file # 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" done < "$temp_file"
# Remove the temporary file # Remove the temporary file

41
logo.txt Normal file
View File

@ -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