• 10 Posts
  • 582 Comments
Joined 2 years ago
cake
Cake day: July 8th, 2023

help-circle
  • The script would place its own version of sudo in your $PATH and wait for you to enter the password. Then it has it and can do what it likes with the information.

    Then it’d just tell you “wrong password” and forward you to the real sudo so that you can keep on working like nothing happened.

    Edit: Or even better, pass your own commands to take over the whole system to the real sudo.







  • I’ve made an update script that tries to run the migrations and index updates in one go.

    #!/bin/bash
    /usr/bin/php8.3 /cloud/updater/updater.phar --no-interaction --no-backup
    /usr/bin/php8.3 /cloud/occ maintenance:repair --include-expensive
    /usr/bin/php8.3 /cloud/occ db:add-missing-indices
    

    The updater itself is by far the slowest of the three commands. I think downloading the new version into a different folder and just moving apps and files over would be much quicker. But I haven’t had the time to look at potential errors with that method.