remove update_file_sudo

This commit is contained in:
Konano 2024-09-12 14:42:23 +08:00
parent ca38324790
commit b2a8a747cf
Signed by: Nano
GPG Key ID: 93686B78EE43A65A
2 changed files with 6 additions and 4 deletions

View File

@ -25,6 +25,8 @@ root 用户请使用 [init_root.sh](./init_root.sh)
- [ ] 开启自启 dockerdocker (rootless) 和 pm2
- [ ] npm 镜像npm config set registry https://registry.npm.taobao.org/
### Others
```bash

View File

@ -51,7 +51,7 @@ update_file $scriptdir/files/zsh/90-other.zsh ~/.oh-my-zsh/custom/90-o
update_file $scriptdir/files/zsh/ys-simple.zsh-theme ~/.oh-my-zsh/custom/themes/ys-simple.zsh-theme
update_authorized_keys
sudo_id=$(sudo id -u 2>/dev/null)
if [ $? -eq 0 ] && [ "$sudo_id" -eq 0 ]; then
update_file_sudo $scriptdir/files/proxychains4.conf /etc/proxychains4.conf
fi
# sudo_id=$(sudo id -u 2>/dev/null)
# if [ $? -eq 0 ] && [ "$sudo_id" -eq 0 ]; then
# update_file_sudo $scriptdir/files/proxychains4.conf /etc/proxychains4.conf
# fi