style
This commit is contained in:
parent
42cdad1909
commit
b798232bfc
@ -186,7 +186,7 @@ configure_zsh() {
|
|||||||
if ! grep -q "conda initialize" ~/.zshrc; then
|
if ! grep -q "conda initialize" ~/.zshrc; then
|
||||||
if [ -d ~/.miniconda3 ]; then
|
if [ -d ~/.miniconda3 ]; then
|
||||||
~/.miniconda3/bin/mamba init zsh
|
~/.miniconda3/bin/mamba init zsh
|
||||||
elif [ -d ~/.miniforge3 ]; then
|
elif [ -d ~/.miniforge3 ]; then
|
||||||
~/.miniforge3/bin/mamba init zsh
|
~/.miniforge3/bin/mamba init zsh
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -307,7 +307,8 @@ configure_nginx() {
|
|||||||
fi
|
fi
|
||||||
if confirm_action "要安装 nginx 吗?" "Y"; then
|
if confirm_action "要安装 nginx 吗?" "Y"; then
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install nginx=1.20.2-1~$(lsb_release -cs) -y # TODO E: Version '1.20.2-1~noble' for 'nginx' was not found
|
# TODO E: Version '1.20.2-1~noble' for 'nginx' was not found
|
||||||
|
sudo apt-get install nginx=1.20.2-1~$(lsb_release -cs) -y
|
||||||
echo "别忘了把 /etc/nginx/sites-enabled 中的配置文件移动到 /etc/nginx/conf.d 中"
|
echo "别忘了把 /etc/nginx/sites-enabled 中的配置文件移动到 /etc/nginx/conf.d 中"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -436,8 +437,8 @@ configure_node_exporter() {
|
|||||||
rm $node_exporter_dir -r
|
rm $node_exporter_dir -r
|
||||||
|
|
||||||
# Generate a self-signed certificate
|
# Generate a self-signed certificate
|
||||||
# openssl req -new -newkey rsa:2048 -days 3650 -nodes -x509 -keyout node_exporter.key -out node_exporter.crt
|
# openssl req -new -newkey rsa:2048 -days 3650 -nodes -x509 -keyout node_exporter.key -out node_exporter.crt
|
||||||
# -subj "/C=CN/ST=Beijing/L=Beijing/O=nano.ac/CN=localhost"
|
# -subj "/C=CN/ST=Beijing/L=Beijing/O=nano.ac/CN=localhost"
|
||||||
# -addext "subjectAltName=DNS:localhost,DNS:host.docker.internal,DNS:*.nano.ac,DNS:*.c-4.cc"
|
# -addext "subjectAltName=DNS:localhost,DNS:host.docker.internal,DNS:*.nano.ac,DNS:*.c-4.cc"
|
||||||
|
|
||||||
if [ ! -d "/etc/node_exporter" ]; then
|
if [ ! -d "/etc/node_exporter" ]; then
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user