Advertisement
MEXXIO

Untitled

Feb 3rd, 2023
962
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.37 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. clear_motd()
  4. {
  5.     echo "Clear MOTD"
  6.     cat /dev/null > /etc/motd
  7. }
  8.  
  9. update_system()
  10. {
  11.     echo "Update System"
  12.     apt update
  13. }
  14.  
  15. upgrade_system()
  16. {
  17.     echo "Upgrade System"
  18.     apt upgrade
  19. }
  20.  
  21. change_hostname()
  22. {
  23.     echo "Change Hostname"
  24.     hostnamectl set-hostname s1.mexxio.pl
  25. }
  26. clear_motd
  27. update_system
  28. upgrade_system
  29. change_hostname
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement