chore: 更新初始化脚本中的下载链接以使用refs/heads/main路径

更新了初始化脚本中的下载链接,将直接使用main分支的路径改为使用refs/heads/main路径,以确保获取最新的配置文件
This commit is contained in:
Kenny Yang committed 2025-05-17 20:44:01 +08:00
1 parent 5067616bf0
commit 9eab62002e
1 file changed
+3 -3
+3 -3
View File
@@ -66,7 +66,7 @@ wget -O /home/app/nginx.conf https://raw.githubusercontent.com/shakenny/containe
wget -O /home/app/conf.d/default.conf https://raw.githubusercontent.com/shakenny/containerized-stack/refs/heads/main/default.conf wget -O /home/app/conf.d/default.conf https://raw.githubusercontent.com/shakenny/containerized-stack/refs/heads/main/default.conf
wget -O /home/app/mysql/conf.d/my.cnf https://raw.githubusercontent.com/shakenny/containerized-stack/refs/heads/main/my.cnf wget -O /home/app/mysql/conf.d/my.cnf https://raw.githubusercontent.com/shakenny/containerized-stack/refs/heads/main/my.cnf
wget -O /home/app/mysql/conf.d/init.sql https://raw.githubusercontent.com/shakenny/containerized-stack/main/local/init.sql wget -O /home/app/mysql/conf.d/init.sql https://raw.githubusercontent.com/shakenny/containerized-stack/refs/heads/main/local/init.sql
wget -O /home/app/redis/conf/redis.conf https://raw.githubusercontent.com/redis/redis/7.2/redis.conf wget -O /home/app/redis/conf/redis.conf https://raw.githubusercontent.com/redis/redis/7.2/redis.conf
@@ -76,7 +76,7 @@ sed -i "s/# requirepass foobared/requirepass \!Ybw324\!/g" /home/app/redis/conf/
sed -i "s/appendonly no/appendonly yes/g" /home/app/redis/conf/redis.conf sed -i "s/appendonly no/appendonly yes/g" /home/app/redis/conf/redis.conf
# 下载Docker Compose文件和Dockerfile # 下载Docker Compose文件和Dockerfile
wget -O /home/app/docker-compose.yml https://raw.githubusercontent.com/shakenny/containerized-stack/main/local/docker-compose.yml wget -O /home/app/docker-compose.yml https://raw.githubusercontent.com/shakenny/containerized-stack/refs/heads/main/local/docker-compose.yml
wget -O /home/app/Dockerfile https://raw.githubusercontent.com/shakenny/containerized-stack/main/local/Dockerfile wget -O /home/app/Dockerfile https://raw.githubusercontent.com/shakenny/containerized-stack/refs/heads/main/local/Dockerfile
echo "Initialization script completed successfully." echo "Initialization script completed successfully."