update_system 336 B

1234567891011121314151617181920212223
  1. #!/usr/bin/fish
  2. # Update the system and print logs in jovian home
  3. ## Should be executed as super admin
  4. function printStep
  5. echo '- - - - -'
  6. echo "Step $argv"
  7. echo '- - - - -'
  8. end
  9. printStep 'Start'
  10. date
  11. printStep '1 : update'
  12. apt update
  13. printStep '2 : upgrade'
  14. apt upgrade -y
  15. printStep 'End'
  16. date
  17. echo 'Script has ended'