From 7f59bdf3ce61252b531cdd14bbcf8fca2853bf47 Mon Sep 17 00:00:00 2001 From: hotwa Date: Thu, 14 Dec 2023 20:03:18 +0800 Subject: [PATCH] update --- install.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/install.sh b/install.sh index febd6cd..dded7a0 100755 --- a/install.sh +++ b/install.sh @@ -51,7 +51,7 @@ install_go() { source ~/.bashrc } -# 下载并解压 Apptainer 源码 +# 下载并解压 singularity 源码 download_singularity() { if [ ! -f "$SINGULARITY_ARCHIVE" ]; then wget -O "$SINGULARITY_ARCHIVE" "$SINGULARITY_URL" @@ -62,7 +62,7 @@ download_singularity() { fi } -# 编译和安装 Apptainer +# 编译和安装 singularity compile_singularity() { cd "$SINGULARITY_DIR" ./mconfig @@ -70,22 +70,22 @@ compile_singularity() { sudo make -C builddir install } -# 卸载 Apptainer +# 卸载 singularity uninstall_singularity() { - echo "正在卸载 Apptainer..." + echo "正在卸载 singularity..." sudo rm -rf /usr/local/bin/singularity sudo rm -rf /usr/local/libexec/singularity sudo rm -rf /usr/local/var/singularity sudo rm -rf /usr/local/etc/singularity sudo rm -rf /usr/local/lib/singularity - echo "Apptainer 卸载完成。" + echo "singularity 卸载完成。" } # 交互式菜单 interactive_menu() { echo "选择操作:" - echo "1) 安装 Apptainer" - echo "2) 卸载 Apptainer" + echo "1) 安装 singularity" + echo "2) 卸载 singularity" echo "3) 退出" read -p "请输入选项(1、2或3): " choice