nyxsonsleep
V2EX  ›  问与答

运维怎么管理不同系统的装机脚本命令?

  •  
  •   nyxsonsleep · Sep 14, 2024 · 1452 views
    This topic created in 605 days ago, the information mentioned may be changed or developed.

    alpine 用的是 apk ,ubuntu 用的 apt ,等等。

    你们是怎么管理这些脚本的,每个版本都选择不同的命令吗?

    目前我是识别系统类型,然后切换 apt 、apk 这些变量。有什么更简单的方法吗?

    2 replies    2024-09-15 09:47:00 +08:00
    shimada666
        2
    shimada666  
       Sep 15, 2024
    ansible +1
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5810 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 03:20 · PVG 11:20 · LAX 20:20 · JFK 23:20
    ♥ Do have faith in what you're doing.