feat: add feature to update cachyOS in the background
This commit is contained in:
15
bin/cachyos-updater-shutdown
Executable file
15
bin/cachyos-updater-shutdown
Executable file
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Installateur de mises à jour au moment de l'extinction (doit tourner en root)."""
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
if os.geteuid() != 0:
|
||||
print("Erreur : doit être lancé en tant que root.", file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
sys.path.insert(0, "/usr/lib/cachyos-updater")
|
||||
|
||||
import shutdown_installer
|
||||
|
||||
shutdown_installer.run()
|
||||
Reference in New Issue
Block a user