Skip to content

Commit 9618b2a

Browse files
authored
Update install.sh
1 parent 2b4f4b5 commit 9618b2a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ chmod 0700 ./checkdaemon.sh
104104
(crontab -l ; echo "*/120 * * * * ~/smartnode/upgrade.sh") | crontab -
105105
chmod 0700 ./upgrade.sh
106106

107+
# Create a cronjob for clearing the log file
108+
(crontab -l ; echo "0 0 */2 * * ~/smartnode/clearlog.sh") | crontab -
109+
chmod 0700 ./clearlog.sh
110+
107111
# Change the SSH port
108112
sed -i "s/[#]\{0,1\}[ ]\{0,1\}Port [0-9]\{2,\}/Port ${_sshPortNumber}/g" /etc/ssh/sshd_config
109113
sed -i "s/14855/${_sshPortNumber}/g" ~/smartnode/anti-ddos.sh

0 commit comments

Comments
 (0)