Compare commits
8 Commits
dev
...
ed3d309691
| Author | SHA1 | Date | |
|---|---|---|---|
| ed3d309691 | |||
| b5edca7adf | |||
| 7deb076d3d | |||
| 668ea5c5e2 | |||
| 401df4602a | |||
| 7fcaf9a84d | |||
| a0faa7629d | |||
| aadba79bd4 |
@@ -18,8 +18,6 @@ TEMP_SCRIPT_CLEANER="/root/firstlogincleaner.sh"
|
|||||||
#################. ALIASES
|
#################. ALIASES
|
||||||
echo "alias ll='ls -l --color=auto'" >> ~/.bashrc
|
echo "alias ll='ls -l --color=auto'" >> ~/.bashrc
|
||||||
echo "alias l='ls -lAh --color=auto'" >> ~/.bashrc
|
echo "alias l='ls -lAh --color=auto'" >> ~/.bashrc
|
||||||
echo "" >> ~/.bashrc
|
|
||||||
echo 'PS1="\u\[\e[0m\]@\[\e[31m\]\h\[\e[0m\]:\[\e[34m\]\w\[\e[0m\]# "' >> ~/.bashrc
|
|
||||||
source ~/.bashrc
|
source ~/.bashrc
|
||||||
|
|
||||||
|
|
||||||
@@ -138,7 +136,6 @@ mv $REBOOTBIN $REBOOTBINOLD
|
|||||||
cat << 'EOF' > $REBOOTBIN
|
cat << 'EOF' > $REBOOTBIN
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
touch /var/log/restart-flag
|
touch /var/log/restart-flag
|
||||||
echo "[REBOOT] Rebooting server..."
|
|
||||||
sleep 1
|
sleep 1
|
||||||
/usr/sbin/reboot.old
|
/usr/sbin/reboot.old
|
||||||
EOF
|
EOF
|
||||||
@@ -148,7 +145,6 @@ chmod +x $REBOOTBIN
|
|||||||
cat << 'EOF' > $SHUTBIN
|
cat << 'EOF' > $SHUTBIN
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
touch /var/log/restart-flag
|
touch /var/log/restart-flag
|
||||||
echo "[SHUTDOWN] Stopping server..."
|
|
||||||
sleep 1
|
sleep 1
|
||||||
shutdown -h now
|
shutdown -h now
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user