From dc239eec60b7b35b39610c15ca67cdf3588eb15c Mon Sep 17 00:00:00 2001 From: filesite Date: Tue, 9 Jul 2024 12:50:56 +0800 Subject: [PATCH] improve sample download --- install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 5fe4d58..30af91c 100755 --- a/install.sh +++ b/install.sh @@ -111,12 +111,18 @@ if [ $containerExist -eq 0 ]; then echo "启动相册容器中..." dockerStartAlbumContainer "${containerName}" "${album_path}" docker ps | grep "${containerName}" - downloadSamplesPhotos "${album_path}" createShortcuts "album" ip=`getLocalIp` echo "✅✅" echo "相册系统已成功安装,并在桌面创建了相册系统的快捷方式,可双击打开" echo "还可以在浏览器输入:http://${ip}:8181/ 打开" + echo "" + + read -p "如果是第一次安装,需要下载演示图片吗?(Y/N): " confirm + if [[ $confirm == [yY] || $confirm == [yY][eE][sS] ]]; then + downloadSamplesPhotos "${album_path}" + fi + echo "" echo "升级系统到最新版..."