-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dev] refactor log.py -> logger.sh (#32)
* update.sh: fetch will prune * log: use hostname directly * refactor log.py to logger.sh (#31) * logger.sh: refactor log.py to bash script * update.sh use beacon; ci test beacon * install.sh: install dep first * install.sh: DFS_UPDATED_RET=85 * more beacon; use stderr * remove py3 dep * install.sh: remove py3 * install.sh: -s|--secure * async log; beacon add sys.login * update use sync beacon * fix ci minor bug; macos: uuidgen/e2fsprogs * logger.sh: not need to use uuid5 * bug fix * dfs err_return * common.sh: post_log and post_beacon will check #args * bug fix * zshrc: fix locale when C.UTF-8 not exists * WIP: combine install -a and tools/ scripts * finish combination; get_os_name; macos.sh * test.ci: now all use -a to install deps * bug fix * bug fix; ci: install.sh run with -x * install.sh: bug fix that re-run install.sh after updated needs orgin args * format Co-authored-by: xiongdian.me <[email protected]>
- Loading branch information
Showing
12 changed files
with
251 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
THIS_DIR=$( cd "$( dirname "${BASH_SOURCE[0]:-${(%):-%x}}" )" && pwd ) | ||
source "$THIS_DIR/common.sh" | ||
|
||
set_mirror() | ||
{ | ||
MIRROR=${1:-"mirrors.tuna.tsinghua.edu.cn"} | ||
MIRROR=${MIRROR//\//\\\/} | ||
sed -i "s/dl-cdn.alpinelinux.org/$MIRROR/g" /etc/apk/repositories | ||
sed -i "[email protected]@${MIRROR}@g" /etc/apk/repositories | ||
} | ||
|
||
apk_add() | ||
{ | ||
apk update | ||
|
||
# mass installation | ||
apk add zsh git tmux vim curl wget bash python3 py3-pip htop gcc g++ cmake make fzf perl linux-headers bind-tools iputils man-db coreutils util-linux | ||
#for i in {fzf,ripgrep}; do apk add $i -y; done | ||
# lite | ||
apk add zsh bash git tmux vim curl fzf iputils coreutils util-linux | ||
# full | ||
if [[ -z "$DFS_LITE" ]]; then | ||
apk add wget python3 py3-pip htop gcc g++ cmake make perl linux-headers bind-tools man-db | ||
fi | ||
} | ||
|
||
set_timezone() | ||
|
Oops, something went wrong.