Skip to content

Stops you from using the yum package manager while inebriated.

License

Notifications You must be signed in to change notification settings

jkingsman/DrunkGuard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DrunkGuard

Plugin for the yum package manager that will force you to do math problems to prove sobriety before using it.

Installation

Ensure you have plugins enabled in your yum config (/etc/yum.conf):

plugins=1

Then download the configuration and plugin files from GitHub:

wget https://raw.githubusercontent.com/jkingsman/DrunkGuard/master/drunkguard.conf
wget https://raw.githubusercontent.com/jkingsman/DrunkGuard/master/drunkguard.py

Move the files into place:

sudo mv drunkguard.conf /etc/yum/pluginconf.d/drunkguard.conf
sudo mv drunkguard.py /usr/lib/yum-plugins/drunkguard.py

You can customize your desired days and hours for drunk checking in drunkguard.py. The default is 8PM to 6AM, Friday, Saturday, and Sunday.

You're now good to go!

[jkingsman@eruditorum ~]$ yum remove git
Loaded plugins: drunkguard, fastestmirror
Hm... are you drunk?
What is 18 + 28? 46
Well done!
What is 100 + 94? 194
Well done!
What is 45 + 49? 93

That's not right... You're drunk! No yum for you.

About

Stops you from using the yum package manager while inebriated.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages