Баннер BBox как шаблон из репозитория (motd/10-armbian-header.tpl): версия/URL подставляются при установке, обновление при смене версии
This commit is contained in:
@@ -84,12 +84,14 @@ fetch_scripts() {
|
||||
mkdir -p "$WORK_DIR"
|
||||
|
||||
local base="$REPO_URL/raw/branch/$BRANCH"
|
||||
local files=("init_system.sh" "cleanup_system.sh" "install_scripts.sh")
|
||||
local files=("init_system.sh" "cleanup_system.sh" "install_scripts.sh" "motd/10-armbian-header.tpl")
|
||||
local ok=1
|
||||
|
||||
for f in "${files[@]}"; do
|
||||
if curl -fsSL "$base/$f" -o "$WORK_DIR/$f"; then
|
||||
chmod +x "$WORK_DIR/$f"
|
||||
case "$f" in
|
||||
*.sh) chmod +x "$WORK_DIR/$f" ;;
|
||||
esac
|
||||
log " ✓ $f загружен"
|
||||
else
|
||||
warn " ✗ не удалось загрузить $f"
|
||||
|
||||
Reference in New Issue
Block a user