shell script

This commit is contained in:
2026-05-22 15:21:21 +08:00
parent b84371b88b
commit d3594007ad
62 changed files with 8965 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
#!/bin/bash
#Change the environment file
echo 'alias cc="clear"
alias t="clear;exit"
cd /file
source /root/.local/bin/.bashrc
clear' >> ~/.bashrc
#Create .local/bin
mkdir -p /root/.local/bin
curl https://sh.lihanzhang.cn/arch/profile -o /root/.local/bin/.bashrc
chmod +x /root/.local/bin/.bashrc
#Create directories
if [ ! -d "/root/.ssh" ]; then
mkdir /root/.ssh
fi
mkdir /www/log -p
mkdir /file
chmod 000 /etc/update-motd.d/* -R
#Add public sshkey
bash <(curl -sL sh.lihanzhang.cn/pub)
echo -e "\e[32msource ~/.bashrc\e[0m"