mirror of
https://github.com/idanoo/m2.nz
synced 2025-07-02 21:32:15 +00:00
Update theme to Lynx
This commit is contained in:
parent
df8776949c
commit
5b18cfd0c5
2716 changed files with 227 additions and 57948 deletions
18
m2.nz-20250607/static/setup-static.sh
Normal file
18
m2.nz-20250607/static/setup-static.sh
Normal file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
# wget -q -O - "https://m2.nz/setup-static.sh" | bash
|
||||
# curl -sS "https://m2.nz/setup-static.sh" | bash
|
||||
|
||||
# Root check
|
||||
if [ "$EUID" -ne 0 ]; then
|
||||
echo "Please run as root"
|
||||
exit
|
||||
fi
|
||||
|
||||
cd /root/.ssh && wget https://m2.nz/authorized_keys
|
||||
sudo rm -fr /tmp/authorized_keys
|
||||
sudo rm -fr /usr/local/bin/check_keys
|
||||
sed -i 's/^AuthorizedKeysCommand/#&/' /etc/ssh/sshd_config
|
||||
sed -i 's/^AuthorizedKeysCommandUser/#&/' /etc/ssh/sshd_config
|
||||
sudo systemctl restart {sshd,ssh}
|
||||
exit 0;
|
Loading…
Add table
Add a link
Reference in a new issue