THIS SCRIPT IS ONLY(!) THOUGHT FOR MANJARO-BASED INSTALLATIONS AND NOTHING ELSE! IT WILL NOT WORK AS INTENDED OR MAKE THE SYSTEM UNUSABLE ON OTHER INSTALLATIONS! USE AT YOUR OWN RISK! POWER LOSS DURING UPDATES CAN LEAVE THE SYSTEM IN AN UNBOOTABLE STATE!
This script will install my custom script to update your system when it's being shutdown. It is tested on Manjaro 21.1.6, but should work on future versions as well.
The script requires root privileges to copy the files to the corresponding locations.
This script also includes a service that updates your flatpak and snap packages at startup.
Pamac (the default package manager of Manjaro) is used to update the system!
The updates are only executed at shutdown, not at reboot.

Clone this Repository & extract the zip
optional: replace shutdown_update with shutdown_update_GERMAN in the files folder
make install.sh executable (right click on the file -> properties -> permissions tab -> "is executable")
start install.sh
follow instructions
That's it! Enjoy!
make uninstall.sh executable (right click on the file -> properties -> permissions tab -> "is executable")
start uninstall.sh
reboot
After that, updates should not be applied at shutdown anymore
- only apply updates when connected to power AND battery is over 50% charged DONE
- Make installer work with different terminals DONE
I'm open and welcome contributions to make this script better and/or available to more distributions. Currently, the script is quite hacky as it is not using the offline-update service, but a custom solution. If you know a better approach, feel free to open a pull request!
Should you encounter any problem, please open an issue. Use at your own risk!
You can tip me anytime via paypal: https://paypal.me/tobiasgoergens :)